Skip to content

Commit

Permalink
Fixed deployments to NPM
Browse files Browse the repository at this point in the history
  • Loading branch information
cshawaus committed Mar 6, 2020
1 parent 9606163 commit d27493d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Build
on:
pull_request:
branches-ignore:
- develop
- master
push:
branches:
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ jobs:
node-version: '10.x'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: yarn install
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN_ADMIN }}

- name: Publish package
run: npm publish
env:
Expand All @@ -38,6 +43,11 @@ jobs:
with:
registry-url: 'https://npm.pkg.github.com'

- name: Install dependencies
run: yarn install
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN_ADMIN }}

- name: Publish package
run: npm publish
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:
steps:
- uses: toolmantim/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d27493d

Please sign in to comment.