Skip to content

Commit

Permalink
chore(actions): upgrade to latest versions (#4162)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacovCR authored Aug 13, 2024
1 parent c6ebbf4 commit d30c3df
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 51 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ jobs:
contents: read # for actions/checkout
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: npm
node-version-file: '.node-version'
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
contents: read # for actions/checkout
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

Expand All @@ -71,12 +71,12 @@ jobs:
contents: read # for actions/checkout
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: npm
node-version-file: '.node-version'
Expand All @@ -100,12 +100,12 @@ jobs:
contents: read # for actions/checkout
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
# We install bunch of packages during integration tests without locking them
Expand All @@ -124,12 +124,12 @@ jobs:
contents: read # for actions/checkout
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: npm
node-version-file: '.node-version'
Expand All @@ -150,12 +150,12 @@ jobs:
contents: read # for actions/checkout
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup Node.js v${{ matrix.node_version_to_setup }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: npm
node-version: ${{ matrix.node_version_to_setup }}
Expand All @@ -174,17 +174,17 @@ jobs:
security-events: write # for codeql-action
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: 'javascript, typescript'

- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3

build-npm-dist:
name: Build 'npmDist' artifact
Expand All @@ -193,12 +193,12 @@ jobs:
contents: read # for actions/checkout
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: npm
node-version-file: '.node-version'
Expand All @@ -210,7 +210,7 @@ jobs:
run: npm run build:npm

- name: Upload npmDist package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: npmDist
path: ./npmDist
Expand All @@ -222,12 +222,12 @@ jobs:
contents: read # for actions/checkout
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: npm
node-version-file: '.node-version'
Expand All @@ -239,7 +239,7 @@ jobs:
run: npm run build:deno

- name: Upload denoDist package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: denoDist
path: ./denoDist
Expand All @@ -251,12 +251,12 @@ jobs:
contents: read # for actions/checkout
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: npm
node-version-file: '.node-version'
Expand All @@ -268,7 +268,7 @@ jobs:
run: npm run build:website

- name: Upload denoDist package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: websiteDist
path: ./websiteDist
16 changes: 8 additions & 8 deletions .github/workflows/cmd-publish-pr-on-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ jobs:
contents: read # for actions/checkout
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false
ref: ${{ fromJSON(inputs.pull_request_json).merge_commit_sha }}

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: npm
node-version-file: '.node-version'
Expand All @@ -36,7 +36,7 @@ jobs:
run: npm run build:npm

- name: Upload npmDist package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: npmDist
path: ./npmDist
Expand All @@ -50,27 +50,27 @@ jobs:
contents: read # for actions/checkout
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: npm
node-version-file: '.node-version'
# 'registry-url' is required for 'npm publish'
registry-url: 'https://registry.npmjs.org'

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: npmDist
path: npmDist

- name: Modify NPM package to be canary release
env:
PULL_REQUEST_JSON: ${{ inputs.pull_request_json }}
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
const fs = require('node:fs');
Expand Down Expand Up @@ -113,7 +113,7 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.npm_canary_pr_publish_token }}

- name: Upload replyMessage
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: replyMessage
path: ./replyMessage.txt
8 changes: 4 additions & 4 deletions .github/workflows/cmd-run-benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
actions: read # to list workflow runs
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false
ref: ${{ fromJSON(inputs.pull_request_json).merge_commit_sha }}
Expand All @@ -27,7 +27,7 @@ jobs:
run: 'git fetch --depth=1 origin "$BASE_SHA:refs/tags/BASE"'

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: npm
node-version-file: '.node-version'
Expand All @@ -40,7 +40,7 @@ jobs:
npm run benchmark -- --revs HEAD BASE
- name: Create replyMessage
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
const fs = require('node:fs');
Expand All @@ -63,7 +63,7 @@ jobs:
);
- name: Upload replyMessage
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: replyMessage
path: ./replyMessage.txt
4 changes: 2 additions & 2 deletions .github/workflows/deploy-artifact-as-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ jobs:
contents: write # for actions/checkout and to push branch
steps:
- name: Checkout `${{ inputs.target_branch }}` branch
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ inputs.target_branch }}

- name: Remove existing files first
run: git rm -r .

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: ${{ inputs.artifact_name }}

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/github-actions-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
WORKFLOW_ID: ${{github.event.workflow_run.id}}

- name: Add comment on PR
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
const fs = require('node:fs');
Expand All @@ -64,7 +64,7 @@ jobs:
cmd: ${{ steps.parse-cmd.outputs.cmd }}
pull_request_json: ${{ steps.parse-cmd.outputs.pull_request_json }}
steps:
- uses: actions/github-script@v6
- uses: actions/github-script@v7
with:
script: |
await github.rest.reactions.createForIssueComment({
Expand All @@ -74,7 +74,7 @@ jobs:
});
- id: parse-cmd
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
const comment = context.payload.comment.body;
Expand Down Expand Up @@ -115,12 +115,12 @@ jobs:
permissions:
pull-requests: write # to add comment to pull request
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: replyMessage

- if: failure()
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
const fs = require('node:fs');
Expand All @@ -144,7 +144,7 @@ jobs:
RUN_URL: ${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}

- if: always()
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
const fs = require('node:fs');
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/mutation-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
contents: read # for actions/checkout
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: npm
node-version-file: '.node-version'
Expand All @@ -29,7 +29,7 @@ jobs:
run: npm run testonly:mutate

- name: Upload mutation testing report
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: mutationTestingReport
path: ./reports/mutation/mutation.html
Loading

0 comments on commit d30c3df

Please sign in to comment.