Skip to content

Commit

Permalink
ci: uses latest git actions
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyloewen committed Jun 28, 2024
1 parent c4b1aac commit 10748b7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 12
- run: npm ci
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
node-version: 20
registry-url: https://registry.npmjs.org/
- name: execute npm ci command
run: npm ci
- name: execute npm publish command
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
10 changes: 4 additions & 6 deletions .github/workflows/publish-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,14 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 12
node-version: 20
registry-url: https://npm.pkg.github.com/

- name: execute npm ci command
run: npm ci

- name: execute npm publish command
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 10748b7

Please sign in to comment.