Skip to content

Commit

Permalink
Fix publish to github
Browse files Browse the repository at this point in the history
  • Loading branch information
brahma-dev committed Jun 4, 2021
1 parent 8afe4bb commit efeb636
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions .github/workflows/npm-publish.yml
Expand Up @@ -26,20 +26,20 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: codecov/codecov-action@v1

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
# publish-npm:
# needs: build
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-node@v2
# with:
# node-version: 12
# registry-url: https://registry.npmjs.org/
# - run: npm ci
# - run: npm run build
# - run: npm publish
# env:
# NODE_AUTH_TOKEN: ${{secrets.npm_token}}

publish-gpr:
needs: build
Expand All @@ -55,6 +55,7 @@ jobs:
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm run build
- run: npm config set registry https://npm.pkg.github.com/
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit efeb636

Please sign in to comment.