Browse Source

fix workflow script, use tag, not git ref

master
Andrew Kaiser 4 years ago
parent
commit
bfd6bfba52
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      .github/workflows/npm-publish.yml

+ 2
- 2
.github/workflows/npm-publish.yml View File

@ -15,7 +15,7 @@ jobs:
registry-url: https://registry.npmjs.org/ registry-url: https://registry.npmjs.org/
- run: npm version --no-git-tag-version $TAG - run: npm version --no-git-tag-version $TAG
env: env:
TAG: ${{ github.ref }}
TAG: ${{ github.event.release.tag_name }}
- run: npm publish - run: npm publish
env: env:
GITHUB_TOKEN: ${{ secrets.github_token }} GITHUB_TOKEN: ${{ secrets.github_token }}
@ -25,7 +25,7 @@ jobs:
- run: git add package.json - run: git add package.json
- run: git commit --messsage "release $TAG" - run: git commit --messsage "release $TAG"
env: env:
TAG: ${{ github.ref }}
TAG: ${{ github.event.release.tag_name }}
- run: git remote add deploy https://${GITHUB_TOKEN}@github.com/${{ github.repository }}.git - run: git remote add deploy https://${GITHUB_TOKEN}@github.com/${{ github.repository }}.git
env: env:
GITHUB_TOKEN: ${{ secrets.github_token }} GITHUB_TOKEN: ${{ secrets.github_token }}


Loading…
Cancel
Save