Skip to content

Commit

Permalink
Update npm-publish-github-packages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
berviantoleo authored Apr 15, 2022
1 parent 20e4ee8 commit f5fef60
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ jobs:
node-version: 16
- run: yarn --frozen-lockfile
- run: yarn build
- uses: actions/upload-artifact@v3
with:
name: build-artifact
path: lib/

publish-gpr:
needs: build
Expand All @@ -30,8 +34,26 @@ jobs:
with:
node-version: 16
registry-url: https://npm.pkg.github.com/
- run: yarn --frozen-lockfile
- run: yarn build
- uses: actions/download-artifact@v3
with:
name: build-artifact
path: lib/
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
publish-npm:
needs: build
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- uses: actions/download-artifact@v3
with:
name: build-artifact
path: lib/
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 comments on commit f5fef60

Please sign in to comment.