From f9fb58b5e2afade39626fafdd2646728cd1ce0f3 Mon Sep 17 00:00:00 2001 From: Koki Takahashi Date: Tue, 26 Nov 2024 14:51:26 +0000 Subject: [PATCH] Replace .node-version with asdf-managed .tool-versions --- .github/workflows/deploy.yml | 6 ++---- .github/workflows/test.yml | 13 ++++--------- .node-version | 1 - .tool-versions | 2 ++ package.json | 2 +- 5 files changed, 9 insertions(+), 15 deletions(-) delete mode 100644 .node-version create mode 100644 .tool-versions diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 99033caa..c8d8ed94 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -15,10 +15,8 @@ jobs: - name: Checkout Repo uses: actions/checkout@master - - name: Setup Node.js - uses: actions/setup-node@v3 - with: - node-version: 16 + - name: Setup Tools + uses: asdf-vm/actions/install@v3 - name: Install Dependencies run: npm install diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4913a6bb..51ebc928 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,10 +11,8 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Install Node.js - uses: actions/setup-node@v3 - with: - node-version: 16 + - name: Setup Tools + uses: asdf-vm/actions/install@v3 - name: Before Install run: | @@ -57,11 +55,8 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly-2022-07-23 - default: true - override: true + - name: Setup Tools + uses: asdf-vm/actions/install@v3 - name: build run: cargo build --all --verbose diff --git a/.node-version b/.node-version deleted file mode 100644 index 975215f4..00000000 --- a/.node-version +++ /dev/null @@ -1 +0,0 @@ -16.17.0 \ No newline at end of file diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 00000000..e4abfe1b --- /dev/null +++ b/.tool-versions @@ -0,0 +1,2 @@ +nodejs 20.18.1 +rust nightly-2022-07-23 diff --git a/package.json b/package.json index cb95ca9c..e22a4ca0 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "test:coverage": "npm run test -- --coverage" }, "engines": { - "node": ">=16.10.0" + "node": "^20.18.1" }, "repository": { "type": "git",