Skip to content

Commit

Permalink
fix: npm publish file fixed to work with yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
vivek12345 committed Jun 27, 2020
1 parent 96141aa commit f5ba3e6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
- run: npm test
- run: yarn install
- run: yarn test

publish-npm:
needs: build
Expand All @@ -27,7 +27,7 @@ jobs:
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: yarn install
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
Expand All @@ -41,7 +41,7 @@ jobs:
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: yarn install
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit f5ba3e6

Please sign in to comment.