Skip to content

Commit

Permalink
Update publish-to-npm.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Champion authored and JakeChampion committed Apr 9, 2020
1 parent 1c729e2 commit 5b89d45
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/publish-to-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ jobs:
node-version: '12.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm version --no-git-tag-version ${{ github.ref }}
- run: npm-publish
- name: Get the version
id: version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- run: npm version --no-git-tag-version ${{ steps.version.outputs.VERSION }}
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 5b89d45

Please sign in to comment.