Skip to content

Commit 0517368

Browse files
authored
Upgrade deprecated actions (#4193)
In response to some of our actions starting to fail deprecate all of the actions that don't work anymore due to using Node 10/12 - [Looks like upload artefact is safe to upgrade](https://github.com/actions/upload-artifact/blob/main/docs/MIGRATION.md) we don't seem to overwrite files - [Same for download](https://github.com/actions/download-artifact/blob/main/docs/MIGRATION.md)
1 parent 9a91e33 commit 0517368

File tree

7 files changed

+17
-17
lines changed

7 files changed

+17
-17
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ jobs:
201201
run: npm run build:npm
202202

203203
- name: Upload npmDist package
204-
uses: actions/upload-artifact@v2
204+
uses: actions/upload-artifact@v4
205205
with:
206206
name: npmDist
207207
path: ./npmDist
@@ -229,7 +229,7 @@ jobs:
229229
run: npm run build:deno
230230

231231
- name: Upload denoDist package
232-
uses: actions/upload-artifact@v2
232+
uses: actions/upload-artifact@v4
233233
with:
234234
name: denoDist
235235
path: ./denoDist
@@ -256,7 +256,7 @@ jobs:
256256
run: npm run build:website
257257

258258
- name: Upload denoDist package
259-
uses: actions/upload-artifact@v2
259+
uses: actions/upload-artifact@v4
260260
with:
261261
name: websiteDist
262262
path: ./websiteDist

.github/workflows/cmd-publish-pr-on-npm.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
run: npm run build:npm
3232

3333
- name: Upload npmDist package
34-
uses: actions/upload-artifact@v2
34+
uses: actions/upload-artifact@v4
3535
with:
3636
name: npmDist
3737
path: ./npmDist
@@ -55,15 +55,15 @@ jobs:
5555
# 'registry-url' is required for 'npm publish'
5656
registry-url: 'https://registry.npmjs.org'
5757

58-
- uses: actions/download-artifact@v2
58+
- uses: actions/download-artifact@v4
5959
with:
6060
name: npmDist
6161
path: npmDist
6262

6363
- name: Modify NPM package to be canary release
6464
env:
6565
PULL_REQUEST_JSON: ${{ inputs.pullRequestJSON }}
66-
uses: actions/github-script@v5
66+
uses: actions/github-script@v7
6767
with:
6868
script: |
6969
const fs = require('fs');
@@ -110,7 +110,7 @@ jobs:
110110
NODE_AUTH_TOKEN: ${{ secrets.NPM_CANARY_PR_PUBLISH_TOKEN }}
111111

112112
- name: Upload replyMessage
113-
uses: actions/upload-artifact@v2
113+
uses: actions/upload-artifact@v4
114114
with:
115115
name: replyMessage
116116
path: ./replyMessage.txt

.github/workflows/cmd-run-benchmark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
EOF
4343
4444
- name: Upload replyMessage
45-
uses: actions/upload-artifact@v2
45+
uses: actions/upload-artifact@v4
4646
with:
4747
name: replyMessage
4848
path: ./replyMessage.txt

.github/workflows/deploy-artifact-as-branch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Remove existing files first
3030
run: git rm -r .
3131

32-
- uses: actions/download-artifact@v2
32+
- uses: actions/download-artifact@v4
3333
with:
3434
name: ${{ inputs.artifact_name }}
3535

.github/workflows/github-actions-bot.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
WORKFLOW_ID: ${{github.event.workflow_run.id}}
3535

3636
- name: Add comment on PR
37-
uses: actions/github-script@v5
37+
uses: actions/github-script@v7
3838
with:
3939
script: |
4040
const fs = require('fs');
@@ -58,7 +58,7 @@ jobs:
5858
cmd: ${{ steps.parse-cmd.outputs.cmd }}
5959
pullRequestJSON: ${{ steps.parse-cmd.outputs.pullRequestJSON }}
6060
steps:
61-
- uses: actions/github-script@v5
61+
- uses: actions/github-script@v7
6262
with:
6363
script: |
6464
github.rest.reactions.createForIssueComment({
@@ -68,7 +68,7 @@ jobs:
6868
});
6969
7070
- id: parse-cmd
71-
uses: actions/github-script@v5
71+
uses: actions/github-script@v7
7272
with:
7373
script: |
7474
const comment = context.payload.comment.body;
@@ -102,12 +102,12 @@ jobs:
102102
if: needs.accept-cmd.result != 'skipped' && always()
103103
runs-on: ubuntu-latest
104104
steps:
105-
- uses: actions/download-artifact@v2
105+
- uses: actions/download-artifact@v4
106106
with:
107107
name: replyMessage
108108

109109
- if: failure()
110-
uses: actions/github-script@v5
110+
uses: actions/github-script@v7
111111
with:
112112
script: |
113113
const fs = require('fs');
@@ -131,7 +131,7 @@ jobs:
131131
RUN_URL: ${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}
132132

133133
- if: always()
134-
uses: actions/github-script@v5
134+
uses: actions/github-script@v7
135135
with:
136136
script: |
137137
const fs = require('fs');

.github/workflows/pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
run: 'node resources/diff-npm-package.js BASE HEAD'
3434

3535
- name: Upload generated report
36-
uses: actions/upload-artifact@v2
36+
uses: actions/upload-artifact@v4
3737
with:
3838
name: npm-dist-diff.html
3939
path: ./npm-dist-diff.html

.github/workflows/pull_request_opened.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Upload event.json
11-
uses: actions/upload-artifact@v2
11+
uses: actions/upload-artifact@v4
1212
with:
1313
name: event.json
1414
path: ${{ github.event_path }}

0 commit comments

Comments
 (0)