Skip to content

Commit

Permalink
Pushes NPM token to .npmrc
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMrZZ authored Oct 3, 2020
1 parent 40bd2f4 commit 59d8c69
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,17 @@ jobs:
with:
node-version: 14
registry-url: https://registry.npmjs.org/
- name: Cache npm modules
uses: actions/[email protected]
with:
# A list of files, directories, and wildcard patterns to cache and restore
path: node_modules
# An explicit key for restoring and saving the cache
key: ${{ runner.os }}-npm-modules
- run: yarn
- run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ./.npmrc
env:
NPM_TOKEN: ${{secrets.npm_token}}
- run: npm run publishToNpm
env:
NPM_TOKEN: ${{secrets.npm_token}}

0 comments on commit 59d8c69

Please sign in to comment.