Skip to content

Commit

Permalink
feat(node): move to node20 (#44)
Browse files Browse the repository at this point in the history
* feat(node): move to node20

* chore(ci): fix check-dist CI
  • Loading branch information
clechasseur authored Sep 5, 2023
1 parent 5f39eb8 commit e8702fe
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 29 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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
Expand All @@ -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:
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16
v20
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
```
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
22 changes: 11 additions & 11 deletions package-lock.json

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

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit e8702fe

Please sign in to comment.