Skip to content

Commit

Permalink
Update npm-publish.yml (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
santoshyadavdev authored Oct 18, 2021
1 parent 0bf242e commit 4a8570e
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 12
- run: npm ci
- run: npm i

publish-npm:
needs: build
Expand All @@ -30,24 +30,7 @@ jobs:
node-version: 12
registry-url: https://registry.npmjs.org/
scope: '@ngx-builders'
- run: npm ci
- run: npm i
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

publish-gpr:
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GIT_PKG_TOKEN}}

0 comments on commit 4a8570e

Please sign in to comment.