ci: migrate publish actions to Node 24 (#1569)

* ci: migrate publish actions to Node 24

* ci: disable unused pnpm cache in ClawHub jobs

---------

Co-authored-by: wyuc <wang-yc24@mails.tsinghua.edu.cn>
This commit is contained in:
LeoParkerOu
2026-09-18 12:14:07 +08:00
committed by GitHub
co-authored by wyuc
parent f6e350a1dd
commit 042ad05965
2 changed files with 17 additions and 15 deletions
+7 -5
View File
@@ -63,7 +63,7 @@ jobs:
group: clawhub-bash3-${{ github.event.pull_request.number }}
cancel-in-progress: true
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
with:
persist-credentials: false
@@ -123,15 +123,16 @@ jobs:
group: clawhub-preview-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.run_id }}
cancel-in-progress: true
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
with:
repository: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || 'main' }}
persist-credentials: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
node-version: 22
package-manager-cache: false
- name: Check publish script syntax
run: |
@@ -197,15 +198,16 @@ jobs:
group: publish-openmaic-skill
cancel-in-progress: false
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
with:
ref: ${{ github.sha }}
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
node-version: 22
package-manager-cache: false
- name: Check publish script syntax
run: |
+10 -10
View File
@@ -96,13 +96,13 @@ jobs:
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
with:
persist-credentials: false
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
node-version: 22
cache: pnpm
@@ -183,10 +183,10 @@ jobs:
RELEASE_ARTIFACTS: ${{ runner.temp }}/openmaic-package-tarballs
run: node scripts/verify-package-artifacts.mjs "$RELEASE_ARTIFACTS"
# actions/upload-artifact v4 artifacts cannot be modified after upload.
# Uploaded artifacts cannot be modified after upload.
# Tests below keep using the same local tarballs, while `publish` receives
# this already-uploaded snapshot only after the whole validate job passes.
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: openmaic-package-tarballs-${{ github.sha }}
path: ${{ runner.temp }}/openmaic-package-tarballs
@@ -251,7 +251,7 @@ jobs:
actions: read # required to read this commit's CI conclusion
id-token: write # required for npm provenance
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
with:
# The first-parent check needs real history.
fetch-depth: 0
@@ -259,13 +259,13 @@ jobs:
# remains isolated in the `mark` job.
persist-credentials: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
node-version: 22
registry-url: https://registry.npmjs.org
- name: Download validated package tarballs
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with:
name: openmaic-package-tarballs-${{ github.sha }}
path: ${{ runner.temp }}/openmaic-package-tarballs
@@ -428,12 +428,12 @@ jobs:
permissions:
contents: write # required to push the release marker tags
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
node-version: 22