Skip to content

Commit

Permalink
npm publish
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmad11 committed May 28, 2020
1 parent d51d595 commit e04cca8
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ name: Node.js Package
on:
release:
types: [created]
env:
consumer_key: ${{secrets.consumer_key}}
consumer_secret_key: ${{secrets.consumer_secret_key}}
token: ${{secrets.token}}
token_secret: ${{secrets.token_secret}}
realm: ${{secrets.realm}}

jobs:
build:
Expand All @@ -31,12 +37,6 @@ jobs:
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
consumer_key: ${{secrets.consumer_key}}
consumer_secret_key: ${{secrets.consumer_secret_key}}
token: ${{secrets.token}}
token_secret: ${{secrets.token_secret}}
realm: ${{secrets.realm}}


publish-gpr:
needs: build
Expand All @@ -50,9 +50,4 @@ jobs:
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
consumer_key: ${{secrets.consumer_key}}
consumer_secret_key: ${{secrets.consumer_secret_key}}
token: ${{secrets.token}}
token_secret: ${{secrets.token_secret}}
realm: ${{secrets.realm}}
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit e04cca8

Please sign in to comment.