Skip to content

Commit

Permalink
Fix env variable for tag release
Browse files Browse the repository at this point in the history
  • Loading branch information
Flavio Prado committed Sep 13, 2021
1 parent b55a4cc commit 619d18b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/github-actions-paxful.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,12 @@ jobs:
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run build --if-present
- run: |
npm version $(echo -n $GITHUB_REF | grep -o '\d\.\d\.\d$') --no-git-tag-version
npm publish
- name: Set output
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/v}
- run: npm version $RELEASE_VERSION --no-git-tag-version
env:
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 619d18b

Please sign in to comment.