Skip to content

Commit

Permalink
Update npm-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkrolick authored Sep 2, 2020
1 parent 597810a commit 36f6434
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
- run: npm test
- uses: pnpm/[email protected]
with:
version: 5.5.7
- run: pnpm install
- run: pnpm test

publish-npm:
needs: build
Expand All @@ -27,8 +30,11 @@ jobs:
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
- uses: pnpm/[email protected]
with:
version: 5.5.7
- run: pnpm install
- run: pnpm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

Expand All @@ -41,7 +47,10 @@ jobs:
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish
- uses: pnpm/[email protected]
with:
version: 5.5.7
- run: pnpm install
- run: pnpm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 36f6434

Please sign in to comment.