diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a8a257ce01..4bc499949f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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' @@ -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 @@ -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' @@ -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 @@ -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' @@ -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 }} @@ -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 @@ -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' @@ -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 @@ -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' @@ -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 @@ -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' @@ -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 diff --git a/.github/workflows/cmd-publish-pr-on-npm.yml b/.github/workflows/cmd-publish-pr-on-npm.yml index 69a0af1607..57441117c2 100644 --- a/.github/workflows/cmd-publish-pr-on-npm.yml +++ b/.github/workflows/cmd-publish-pr-on-npm.yml @@ -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' @@ -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 @@ -50,19 +50,19 @@ 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 @@ -70,7 +70,7 @@ jobs: - 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'); @@ -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 diff --git a/.github/workflows/cmd-run-benchmark.yml b/.github/workflows/cmd-run-benchmark.yml index 22266d0af8..eec12c4ff2 100644 --- a/.github/workflows/cmd-run-benchmark.yml +++ b/.github/workflows/cmd-run-benchmark.yml @@ -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 }} @@ -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' @@ -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'); @@ -63,7 +63,7 @@ jobs: ); - name: Upload replyMessage - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: replyMessage path: ./replyMessage.txt diff --git a/.github/workflows/deploy-artifact-as-branch.yml b/.github/workflows/deploy-artifact-as-branch.yml index bdf08290ab..dc17b9093d 100644 --- a/.github/workflows/deploy-artifact-as-branch.yml +++ b/.github/workflows/deploy-artifact-as-branch.yml @@ -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 }} diff --git a/.github/workflows/github-actions-bot.yml b/.github/workflows/github-actions-bot.yml index a930e29357..94efd23aed 100644 --- a/.github/workflows/github-actions-bot.yml +++ b/.github/workflows/github-actions-bot.yml @@ -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'); @@ -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({ @@ -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; @@ -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'); @@ -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'); diff --git a/.github/workflows/mutation-testing.yml b/.github/workflows/mutation-testing.yml index 3d5b8b97e9..71c0c1909e 100644 --- a/.github/workflows/mutation-testing.yml +++ b/.github/workflows/mutation-testing.yml @@ -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' @@ -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 diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 35e2973e59..1754218348 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -15,7 +15,7 @@ jobs: contents: read # for actions/checkout steps: - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: persist-credentials: false @@ -29,7 +29,7 @@ jobs: contents: read # for actions/checkout steps: - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: persist-credentials: false @@ -39,7 +39,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' @@ -51,7 +51,7 @@ jobs: run: 'npm run diff:npm BASE HEAD' - name: Upload generated report - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: npm-dist-diff.html path: ./reports/npm-dist-diff.html diff --git a/.github/workflows/pull_request_opened.yml b/.github/workflows/pull_request_opened.yml index 3d77be3b6c..d0e6aef0ac 100644 --- a/.github/workflows/pull_request_opened.yml +++ b/.github/workflows/pull_request_opened.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Upload event.json - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: event.json path: ${{ github.event_path }}