Skip to content

Commit

Permalink
workflows: use node 22 (#118)
Browse files Browse the repository at this point in the history
Node 21 was EOL'ed on June 1st. https://endoflife.date/nodejs

Signed-off-by: Stephan Renatus <[email protected]>
  • Loading branch information
srenatus authored Jul 9, 2024
1 parent 4f293e1 commit ef902a0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs_manual.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 21
node-version: 22
- name: Install dependencies
run: npm ci --foreground-scripts
- name: Generate docs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/jsr_manual.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 21
node-version: 22
- name: publish @styra/opa to JSR
run: |
npm ci --foreground-scripts
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 21
node-version: 22
- name: publish @styra/opa to JSR
run: |
npm ci --foreground-scripts
Expand All @@ -42,7 +42,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 21
node-version: 22

- name: Install Dependencies
run: npm ci --foreground-scripts
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 21
node-version: 22
- name: Install dependencies
run: npm ci --foreground-scripts
- name: Generate docs
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: "21.x"
node-version: 22
- id: workspaces
# https://github.com/npm/cli/issues/3034#issuecomment-885211061
run: |
Expand All @@ -48,7 +48,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: "21.x"
node-version: 22
- name: setup and build
# https://github.com/npm/cli/issues/3034#issuecomment-885211061
run: |
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"type": "module",
"engineStrict": true,
"engines": {
"node": ">=16",
"node": ">=22",
"npm": ">=8"
},
"devDependencies": {
Expand Down

0 comments on commit ef902a0

Please sign in to comment.