Skip to content

Commit

Permalink
Update publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxStalker committed Jun 2, 2021
1 parent 87cf3fe commit 135dc3b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,15 @@ jobs:
- name: Install dependencies
run: npm ci

# Set NPM auth token from GitHub Secrets
- env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

# build modules with microbundle
- name: Build
run: npm run build

# set auth token here instead of inside .npmrc file
- name: Set config variables
run: npm config set //registry.npmjs.org/:_authToken ${NPM_AUTH_TOKEN}
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} # Set NPM auth token from GitHub Secrets

# publish package to npm registry using token
- name: Publish to NPM
Expand Down

0 comments on commit 135dc3b

Please sign in to comment.