From e8702fe7c3899df05b4cfc18fbc9f9b1324783fb Mon Sep 17 00:00:00 2001 From: Charles Lechasseur Date: Mon, 4 Sep 2023 23:43:28 -0400 Subject: [PATCH] feat(node): move to node20 (#44) * feat(node): move to node20 * chore(ci): fix check-dist CI --- .github/workflows/check-dist.yml | 7 ++++++- .github/workflows/ci.yml | 12 ++++++------ .nvmrc | 2 +- README.md | 10 +++++----- action.yml | 2 +- package-lock.json | 22 +++++++++++----------- package.json | 8 ++++---- 7 files changed, 34 insertions(+), 29 deletions(-) diff --git a/.github/workflows/check-dist.yml b/.github/workflows/check-dist.yml index 5882e65a..5229c05d 100644 --- a/.github/workflows/check-dist.yml +++ b/.github/workflows/check-dist.yml @@ -17,7 +17,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: Create npm configuration + run: echo "//npm.pkg.github.com/:_authToken=${token}" >> ~/.npmrc + env: + token: ${{ secrets.GITHUB_TOKEN }} + + - uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v3 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dcb90d0e..654cd775 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: env: token: ${{ secrets.GITHUB_TOKEN }} - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: node-version-file: '.nvmrc' @@ -24,7 +24,7 @@ jobs: rust-tests-working: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - uses: ./ with: @@ -35,7 +35,7 @@ jobs: rust-tests-not-working: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - uses: ./ with: @@ -50,7 +50,7 @@ jobs: rust-tests-cross: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable with: targets: aarch64-unknown-linux-gnu @@ -64,7 +64,7 @@ jobs: rust-clippy-warnings: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - uses: ./ with: @@ -74,7 +74,7 @@ jobs: rust-fmt-warnings: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - uses: ./ with: diff --git a/.nvmrc b/.nvmrc index 5edcff03..9a2a0e21 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v16 \ No newline at end of file +v20 diff --git a/README.md b/README.md index 76929bfc..b244976a 100644 --- a/README.md +++ b/README.md @@ -29,9 +29,9 @@ jobs: name: Rust project runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - - uses: clechasseur/rs-cargo@v1 + - uses: clechasseur/rs-cargo@v2 with: command: build args: --release --all-features @@ -49,7 +49,7 @@ jobs: name: Rust project runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - run: cargo build --release --all-features ``` @@ -97,11 +97,11 @@ jobs: name: Linux ARMv7 runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable with: targets: armv7-unknown-linux-gnueabihf - - uses: clechasseur/rs-cargo@v1 + - uses: clechasseur/rs-cargo@v2 with: use-cross: true command: build diff --git a/action.yml b/action.yml index f96cfbcd..2f50dfa1 100644 --- a/action.yml +++ b/action.yml @@ -18,7 +18,7 @@ inputs: description: Directory where to perform cargo command required: false runs: - using: 'node16' + using: 'node20' main: 'dist/index.js' branding: icon: package diff --git a/package-lock.json b/package-lock.json index f03eb98c..26bb8381 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,20 +1,20 @@ { "name": "rs-cargo", - "version": "1.1.1", + "version": "2.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "rs-cargo", - "version": "1.1.1", + "version": "2.0.0", "license": "MIT", "dependencies": { - "@clechasseur/rs-actions-core": "^1.0.4", + "@clechasseur/rs-actions-core": "^2.0.0", "string-argv": "^0.3.2" }, "devDependencies": { - "@types/jest": "^26.0.15", - "@types/node": "^16.18.41", + "@types/jest": "^26.0.24", + "@types/node": "^20.5.9", "@typescript-eslint/eslint-plugin": "^4.33.0", "@typescript-eslint/parser": "^4.33.0", "@vercel/ncc": "0.36.1", @@ -1126,9 +1126,9 @@ "dev": true }, "node_modules/@clechasseur/rs-actions-core": { - "version": "1.0.4", - "resolved": "https://npm.pkg.github.com/download/@clechasseur/rs-actions-core/1.0.4/0ae7647f5a24e03704af084d292a22ef3134e5fc", - "integrity": "sha512-el9j/C3hQ/SFyydv4Y3R1GFPmsn5BSFg3S7Vv/lCi0aNVDoBtq+WQGKxbdhffIIpHsUmBoiyHqRMSDEbJm+15A==", + "version": "2.0.0", + "resolved": "https://npm.pkg.github.com/download/@clechasseur/rs-actions-core/2.0.0/c341c9d55a5690bb85838c9baa8ecee5e1d8d8c6", + "integrity": "sha512-cKELHsr+ri6mJ+0O3WDZ+cLEyNOcshGUvB/80K0YAA9RE7Y65znlznKbGygKDt3h8Ex5+xrlVdNnYsMRF73O0Q==", "license": "MIT", "dependencies": { "@actions/cache": "^3.2.2", @@ -1990,9 +1990,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "16.18.41", - "resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.41.tgz", - "integrity": "sha512-YZJjn+Aaw0xihnpdImxI22jqGbp0DCgTFKRycygjGx/Y27NnWFJa5FJ7P+MRT3u07dogEeMVh70pWpbIQollTA==" + "version": "20.5.9", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.5.9.tgz", + "integrity": "sha512-PcGNd//40kHAS3sTlzKB9C9XL4K0sTup8nbG5lC14kzEteTNuAFh9u5nA0o5TWnSG2r/JNPRXFVcHJIIeRlmqQ==" }, "node_modules/@types/node-fetch": { "version": "2.6.4", diff --git a/package.json b/package.json index 072fa71f..33283145 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rs-cargo", - "version": "1.1.1", + "version": "2.0.0", "private": false, "description": "Run cargo command", "main": "dist/index.js", @@ -31,12 +31,12 @@ "url": "https://github.com/clechasseur/rs-cargo/issues" }, "dependencies": { - "@clechasseur/rs-actions-core": "^1.0.4", + "@clechasseur/rs-actions-core": "^2.0.0", "string-argv": "^0.3.2" }, "devDependencies": { - "@types/jest": "^26.0.15", - "@types/node": "^16.18.41", + "@types/jest": "^26.0.24", + "@types/node": "^20.5.9", "@typescript-eslint/eslint-plugin": "^4.33.0", "@typescript-eslint/parser": "^4.33.0", "@vercel/ncc": "0.36.1",