Skip to content

Commit

Permalink
feat: 実行環境をnode16から20に更新 (#131)
Browse files Browse the repository at this point in the history
* feat: 実行環境をnode16から20に更新

* ci: テストなどのnode 16を20に更新

* ci: pnpm installが失敗するのを修正
  • Loading branch information
kondei authored Feb 26, 2024
1 parent 768aa3e commit 52c11e1
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 45 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
- name: Enable corepack
run: corepack enable

- name: Set Node.js 16.x
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 16.x
node-version-file: .nvmrc
cache: 'pnpm'

- name: Install dependencies
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ jobs:
with:
fetch-depth: 0

- uses: actions/setup-node@v3
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 16.x
node-version-file: .nvmrc
cache: 'pnpm'

- run: npx changelogithub
env:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
- name: Enable corepack
run: corepack enable
- name: Setup Node.js
uses: actions/setup-node@v4
with:
version: 6.32.7
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version: 16
node-version-file: .nvmrc
cache: 'pnpm'
- run: |
pnpm i
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.11.1
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ outputs:
status:
description: 'Status of the Vercel deployment'
runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@swc/core": "^1.3.84",
"@swc/jest": "^0.2.29",
"@types/jest": "^29.5.5",
"@types/node": "^18.17.15",
"@types/node": "^20.11.20",
"@vercel/ncc": "^0.38.0",
"eslint": "^8.50.0",
"jest": "^29.7.0",
Expand All @@ -52,5 +52,8 @@
"outDir": "lib",
"splitting": true,
"clean": true
},
"engines": {
"node": "20.x"
}
}
}
74 changes: 42 additions & 32 deletions pnpm-lock.yaml

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

0 comments on commit 52c11e1

Please sign in to comment.