Skip to content

Commit

Permalink
Merge pull request #32 from github/dg/maintenance
Browse files Browse the repository at this point in the history
Actions/Node Updates
  • Loading branch information
dgreif authored Oct 15, 2024
2 parents f7e5bc7 + 4320c1a commit 5a350de
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 22 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 20.x
uses: actions/setup-node@v2
with:
node-version: 20.x
- name: npm install, build, and test
run: |
npm install
npm run build --if-present
npm test
env:
CI: true
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- name: npm install, build, and test
run: |
npm install
npm run build --if-present
npm test
env:
CI: true
9 changes: 5 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@ on:

permissions:
contents: read
id-token: write

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
registry-url: https://registry.npmjs.org/
cache: npm
- run: npm ci
Expand All @@ -25,6 +26,6 @@ jobs:
npm version ${TAG_NAME} --git-tag-version=false
env:
TAG_NAME: ${{github.event.release.tag_name}}
- run: npm whoami; npm --ignore-scripts publish
- run: npm whoami; npm --ignore-scripts publish --provenance
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
13 changes: 7 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5a350de

Please sign in to comment.