mirror of
https://github.com/tiennm99/thptqg.git
synced 2026-10-11 03:13:48 +00:00
chore(ci): move the actions to their node24 releases
The runner warns that the node20 action runtime is deprecated. Every action in the workflow was on it: checkout v4 -> v7 setup-go v5 -> v7 setup-node v4 -> v7 upload-pages-artifact v3 -> v5 deploy-pages v4 -> v5 The two Pages actions move together because the artifact format is shared between them. None of the inputs this workflow passes changed across those majors — the releases are ESM migrations and the runtime bump. `node-version: 24` was already the Node the build runs on; this is about the runtime the actions themselves execute in.
This commit is contained in:
1 parent
ec348e34bd
commit
560877e87b
1 file changed
+5
-5
@@ -26,9 +26,9 @@ jobs:
|
|||||||
# explicitly rather than relying on the default.
|
# explicitly rather than relying on the default.
|
||||||
CGO_ENABLED: '0'
|
CGO_ENABLED: '0'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v7
|
||||||
|
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v7
|
||||||
with:
|
with:
|
||||||
go-version: '1.26'
|
go-version: '1.26'
|
||||||
cache-dependency-path: |
|
cache-dependency-path: |
|
||||||
@@ -37,7 +37,7 @@ jobs:
|
|||||||
assembler/go.sum
|
assembler/go.sum
|
||||||
|
|
||||||
# web/ is the only npm project in the repository; the other stages are Go.
|
# web/ is the only npm project in the repository; the other stages are Go.
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v7
|
||||||
with:
|
with:
|
||||||
node-version: '24'
|
node-version: '24'
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
@@ -91,7 +91,7 @@ jobs:
|
|||||||
- name: Build site
|
- name: Build site
|
||||||
run: go -C assembler run ./cmd/assemble
|
run: go -C assembler run ./cmd/assemble
|
||||||
|
|
||||||
- uses: actions/upload-pages-artifact@v3
|
- uses: actions/upload-pages-artifact@v5
|
||||||
with:
|
with:
|
||||||
path: _site
|
path: _site
|
||||||
|
|
||||||
@@ -108,4 +108,4 @@ jobs:
|
|||||||
url: ${{ steps.deployment.outputs.page_url }}
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
steps:
|
steps:
|
||||||
- id: deployment
|
- id: deployment
|
||||||
uses: actions/deploy-pages@v4
|
uses: actions/deploy-pages@v5
|
||||||
Reference in new issue
Block a user