Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
maxep committed Aug 22, 2023
1 parent 7031d4c commit 95f9d6b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 17 deletions.
27 changes: 12 additions & 15 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ jobs:
name: Publishing Node.js Package to NPM package registry.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/

- name: Check package version
uses: technote-space/package-version-check-action@v1
Expand All @@ -22,21 +23,19 @@ jobs:

- run: yarn install
- run: yarn lint

- uses: JS-DevTools/npm-publish@v1
with:
registry: https://registry.npmjs.org/
token: ${{ secrets.NPM_TOKEN }}
access: public
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

publish-gpr:
name: Publishing Node.js Package to GitHub package registry.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://npm.pkg.github.com/

- name: Check package version
uses: technote-space/package-version-check-action@v1
Expand All @@ -45,8 +44,6 @@ jobs:

- run: yarn install
- run: yarn lint

- uses: JS-DevTools/npm-publish@v1
with:
registry: https://npm.pkg.github.com/
token: ${{ secrets.GITHUB_TOKEN }}
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
name: Build & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: yarn install
Expand Down

0 comments on commit 95f9d6b

Please sign in to comment.