Skip to content

Commit

Permalink
github actions: new npm config
Browse files Browse the repository at this point in the history
  • Loading branch information
lostfields committed Apr 7, 2020
1 parent 3b9524b commit 2981e44
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
npm run lint
npm run build
zip -r artifact lib src package.json index.html LICENSE README.md
env:
CI: true
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v1-release
with:
Expand All @@ -41,10 +43,14 @@ jobs:
scope: tfso
- name: publish
run: |
npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
npm config set scope "<@tfso>"
npm config list
npm ci
npm run build
npm publish --@tfso:registry=https://registry.npmjs.org/
npm publish --access public
env:
CI: true
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

# publish-gpr:
Expand Down

0 comments on commit 2981e44

Please sign in to comment.