Skip to content

Commit

Permalink
feat: sync gpr & npm
Browse files Browse the repository at this point in the history
  • Loading branch information
selmi-karim committed May 30, 2020
1 parent 1c035c3 commit 4d45987
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,13 @@ jobs:
echo "GPR should be updated"
npm publish
fi
- name: Register Token
run: |
echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" > /home/runner/work/_temp/.npmrc
echo "_auth=$NODE_AUTH_TOKEN" >> /home/runner/work/_temp/.npmrc
echo "email=<your@email.address>" >> /home/runner/work/_temp/.npmrc
echo "always-auth=true" >> /home/runner/work/_temp/.npmrc
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish to npm
run: npm publish

0 comments on commit 4d45987

Please sign in to comment.