Skip to content

Commit

Permalink
Fix: Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
luciobenini committed Oct 24, 2021
1 parent eebbacf commit dea65c4
Show file tree
Hide file tree
Showing 3 changed files with 804 additions and 13 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 14
- run: npm ci
- name: CI
run: npm ci

publish-npm:
needs: build
Expand All @@ -26,8 +27,13 @@ jobs:
with:
node-version: 14
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish --access public
- name: CI
run: npm ci
- name: Build
run: npm run build
- name: Publish
working-directory: ./dist
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

Expand All @@ -41,9 +47,14 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
node-version: 14
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish --access public
- name: CI
run: npm ci
- name: Build
run: npm run build
- name: Publish
working-directory: ./dist
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
Loading

0 comments on commit dea65c4

Please sign in to comment.