Skip to content

Commit 515d7bd

Browse files
authored
Update CI Workflows for node 24 (#44)
Signed-off-by: C0D3 M4513R <28912031+C0D3-M4513R@users.noreply.github.com>
1 parent d4f4fd3 commit 515d7bd

2 files changed

Lines changed: 9 additions & 10 deletions

File tree

.github/workflows/check_pr.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
name: Build and Test
1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v6
1818
- uses: moonrepo/setup-rust@v1
1919
- run: cargo build --all
2020
- run: cargo test --all
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: ubuntu-latest
2424
name: Check formatting
2525
steps:
26-
- uses: actions/checkout@v4
26+
- uses: actions/checkout@v6
2727
- uses: moonrepo/setup-rust@v1
2828
with:
2929
components: rustfmt

.github/workflows/ci.yaml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ jobs:
2626
PASSED_VERSION: ${{ (github.event_name == 'repository_dispatch' && github.event.client_payload || fromJSON(inputs.json))['version'] }}
2727
VERSION_POSTPEND: ${{ github.event_name == 'workflow_dispatch' && inputs.version_postfix || '' }}
2828
steps:
29-
- uses: actions/setup-node@v4
29+
- uses: actions/setup-node@v6
3030
with:
3131
node-version: 22
32-
- uses: actions/checkout@v4
32+
- uses: actions/checkout@v6
3333
- name: 'Cache node_modules'
34-
uses: actions/cache@v4
34+
uses: actions/cache@v6
3535
with:
3636
path: node_modules
3737
key: ${{ runner.os }}-node-v22-${{ hashFiles('**/generate.sh') }}
@@ -42,7 +42,7 @@ jobs:
4242
- name: Set OpenAPI Generator version
4343
run: ./node_modules/\@openapitools/openapi-generator-cli/main.js version-manager set 7.21.0
4444
- name: Set up JDK 20
45-
uses: actions/setup-java@v4
45+
uses: actions/setup-java@v5
4646
with:
4747
java-version: '20'
4848
distribution: 'adopt'
@@ -80,7 +80,6 @@ jobs:
8080
folder: .
8181
commit-message: "Upgrade Rust SDK to spec ${{ env.PASSED_VERSION }}${{env.VERSION_POSTPEND}}"
8282
- name: Deploy to Crates.io
83-
uses: katyo/publish-crates@v2
84-
with:
85-
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
86-
args: --allow-dirty
83+
run: cargo publish
84+
env:
85+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 commit comments

Comments
 (0)