Skip to content

Commit

Permalink
build: update workflows for Node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
wjrogers committed Mar 26, 2024
1 parent 0ae7562 commit 8a13888
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
with:
node-version: 16

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: npm
- uses: dotnet/nbgv@master
id: nbgv
with:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ jobs:
build:
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: 16
node-version-file: package.json
cache: npm

- run: npm ci
- run: npm test
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16

# we don't need to build or run nbgv because the tag was already built
- uses: actions/checkout@v3
node-version-file: package.json
cache: npm

# move the tracking tags to the release tag
- run: |
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
"prepare": "husky install"
},
"license": "ISC",
"engines": {
"node": "^20.0.0"
},
"dependencies": {
"@actions/core": "^1.7.0",
"@actions/github": "^5.0.1",
Expand Down

0 comments on commit 8a13888

Please sign in to comment.