Skip to content

Commit 6196eb0

Browse files
committed
chore: update CI actions
1 parent 05ecde0 commit 6196eb0

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

.github/workflows/algolia-indexation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
name: Create index
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515
- name: Credentials
1616
run: |
1717
export ALGOLIA_API_KEY=${{ secrets.ALGOLIA_API_KEY }}

.github/workflows/pr-preview-build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,26 @@ jobs:
55
build-pr-preview:
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v3
8+
- uses: actions/checkout@v4
99

10-
- uses: actions/setup-node@v3
10+
- uses: actions/setup-node@v4
1111
with:
1212
node-version: "18"
1313
- name: Build
1414
run: |
1515
npm ci
1616
npm run build
17-
17+
1818
- name: Save PR number
1919
run: |
2020
mkdir -p ./pr
2121
echo ${{ github.event.number }} > ./pr/NR
2222
23-
- uses: actions/upload-artifact@v3
23+
- uses: actions/upload-artifact@v4
2424
with:
2525
name: build
2626
path: build/
27-
- uses: actions/upload-artifact@v3
27+
- uses: actions/upload-artifact@v4
2828
with:
2929
name: pr
3030
path: pr/

.github/workflows/pr-preview-deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
github.event.workflow_run.conclusion == 'success'
1414
steps:
1515
- name: Download build
16-
uses: actions/github-script@v3
16+
uses: actions/github-script@v7
1717
with:
1818
script: |
1919
var artifacts = await github.actions.listWorkflowRunArtifacts({
@@ -33,7 +33,7 @@ jobs:
3333
var fs = require('fs');
3434
fs.writeFileSync('${{github.workspace}}/build.zip', Buffer.from(download.data));
3535
- name: Download PR number
36-
uses: actions/github-script@v3
36+
uses: actions/github-script@v7
3737
with:
3838
script: |
3939
var artifacts = await github.actions.listWorkflowRunArtifacts({
@@ -57,7 +57,7 @@ jobs:
5757
- run: unzip pr.zip
5858

5959
- name: Generate issue_number
60-
uses: actions/github-script@v3
60+
uses: actions/github-script@v7
6161
id: issue_number
6262
with:
6363
github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -67,7 +67,7 @@ jobs:
6767
result-encoding: string
6868

6969
- name: Generate Surge URL
70-
uses: actions/github-script@v3
70+
uses: actions/github-script@v7
7171
id: surge-url
7272
with:
7373
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ jobs:
1010
name: "Github pages"
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
14-
- uses: actions/setup-node@v3
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-node@v4
1515
with:
1616
node-version: 18
1717
- name: Build
1818
run: |
1919
npm ci
2020
npm run build
2121
- name: Deploy
22-
uses: peaceiris/actions-gh-pages@v3
22+
uses: peaceiris/actions-gh-pages@v4
2323
with:
2424
personal_token: ${{ secrets.GITHUB_TOKEN }}
2525
publish_dir: build

0 commit comments

Comments
 (0)