Update GitHub Actions to v6

This commit is contained in:
Gianfranco Piana
2026-04-26 14:37:17 -03:00
parent 96f57dc689
commit c35818ac17
4 changed files with 18 additions and 7 deletions
+5 -5
View File
@@ -14,10 +14,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Set up Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: 22
cache: npm
@@ -32,18 +32,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out plugin
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
path: plugin
- name: Check out OpenClaw host
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
repository: openclaw/openclaw
path: openclaw
- name: Set up Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: 22
cache: npm
+2 -2
View File
@@ -25,7 +25,7 @@ jobs:
environment: npm
steps:
- name: Check out repository
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Resolve release tag
id: release
@@ -34,7 +34,7 @@ jobs:
echo "tag=${tag}" >> "$GITHUB_OUTPUT"
- name: Set up Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: 22
registry-url: https://registry.npmjs.org
+7
View File
@@ -9,4 +9,11 @@ describe("CI workflow", () => {
expect(workflow).toContain("repository: openclaw/openclaw");
expect(workflow).toContain("npm run smoke:openclaw-host");
});
it("uses Node 24-compatible GitHub Actions", () => {
expect(workflow).toContain("actions/checkout@v6");
expect(workflow).toContain("actions/setup-node@v6");
expect(workflow).not.toContain("actions/checkout@v4");
expect(workflow).not.toContain("actions/setup-node@v4");
});
});
+4
View File
@@ -18,6 +18,10 @@ describe("npm publish workflow", () => {
expect(workflow).toContain("npm view \"${PACKAGE_NAME}@${PACKAGE_VERSION}\" version");
expect(workflow).toContain("if: steps.package-state.outputs.already_published != 'true'");
expect(workflow).toContain("npm publish --provenance --access public");
expect(workflow).toContain("actions/checkout@v6");
expect(workflow).toContain("actions/setup-node@v6");
expect(workflow).not.toContain("actions/checkout@v4");
expect(workflow).not.toContain("actions/setup-node@v4");
expect(workflow).not.toContain("NODE_AUTH_TOKEN");
expect(workflow).not.toContain("NPM_TOKEN");
});