diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index db57e628ea..8f014024fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,12 +6,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: persist-credentials: false - name: Setup Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: cache: npm node-version-file: '.node-version' @@ -41,7 +41,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: persist-credentials: false @@ -64,12 +64,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: persist-credentials: false - name: Setup Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: cache: npm node-version-file: '.node-version' @@ -92,12 +92,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: persist-credentials: false - name: Setup Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version-file: '.node-version' # We install bunch of packages during integration tests without locking them @@ -114,12 +114,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: persist-credentials: false - name: Setup Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: cache: npm node-version-file: '.node-version' @@ -138,12 +138,12 @@ jobs: node_version_to_setup: [14, 16, 18] steps: - name: Checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: persist-credentials: false - name: Setup Node.js v${{ matrix.node_version_to_setup }} - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: cache: npm node-version: ${{ matrix.node_version_to_setup }} @@ -160,12 +160,12 @@ jobs: needs: [test, fuzz, lint, integrationTests] steps: - name: Checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: persist-credentials: false - name: Setup Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: cache: npm node-version-file: '.node-version' @@ -177,7 +177,7 @@ jobs: run: npm run build:npm - name: Upload npmDist package - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: npmDist path: ./npmDist @@ -188,12 +188,12 @@ jobs: needs: [test, fuzz, lint, integrationTests] steps: - name: Checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: persist-credentials: false - name: Setup Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: cache: npm node-version-file: '.node-version' @@ -205,7 +205,7 @@ jobs: run: npm run build:deno - name: Upload denoDist package - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: denoDist path: ./denoDist @@ -215,12 +215,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: persist-credentials: false - name: Setup Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: cache: npm node-version-file: '.node-version' @@ -232,7 +232,7 @@ jobs: run: npm run build:website - name: Upload denoDist package - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 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 12a0e513c1..66d84d58a0 100644 --- a/.github/workflows/cmd-publish-pr-on-npm.yml +++ b/.github/workflows/cmd-publish-pr-on-npm.yml @@ -15,13 +15,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: persist-credentials: false ref: ${{ fromJSON(inputs.pullRequestJSON).merge_commit_sha }} - name: Setup Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: cache: npm node-version-file: '.node-version' @@ -33,7 +33,7 @@ jobs: run: npm run build:npm - name: Upload npmDist package - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: npmDist path: ./npmDist @@ -45,19 +45,19 @@ jobs: needs: [build-npm-dist] steps: - name: Checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: persist-credentials: false - name: Setup Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 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@v2 + - uses: actions/download-artifact@v3 with: name: npmDist path: npmDist @@ -65,7 +65,7 @@ jobs: - name: Modify NPM package to be canary release env: PULL_REQUEST_JSON: ${{ inputs.pullRequestJSON }} - uses: actions/github-script@v5 + uses: actions/github-script@v6 with: script: | import fs from 'node:fs'; @@ -108,7 +108,7 @@ jobs: NODE_AUTH_TOKEN: ${{ secrets.NPM_CANARY_PR_PUBLISH_TOKEN }} - name: Upload replyMessage - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: replyMessage path: ./replyMessage.txt diff --git a/.github/workflows/cmd-run-benchmark.yml b/.github/workflows/cmd-run-benchmark.yml index 6e3cc9cb9c..65b858ec17 100644 --- a/.github/workflows/cmd-run-benchmark.yml +++ b/.github/workflows/cmd-run-benchmark.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: persist-credentials: false ref: ${{ fromJSON(inputs.pullRequestJSON).merge_commit_sha }} @@ -23,7 +23,7 @@ jobs: run: 'git fetch --depth=1 origin "$BASE_SHA:refs/tags/BASE"' - name: Setup Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: cache: npm node-version-file: '.node-version' @@ -36,7 +36,7 @@ jobs: npm run benchmark -- --revs HEAD BASE - name: Create replyMessage - uses: actions/github-script@v5 + uses: actions/github-script@v6 with: script: | import fs from 'node:fs'; @@ -59,7 +59,7 @@ jobs: ); - name: Upload replyMessage - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 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 2dc71e7fcb..4dd7e1b513 100644 --- a/.github/workflows/deploy-artifact-as-branch.yml +++ b/.github/workflows/deploy-artifact-as-branch.yml @@ -26,14 +26,14 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout `${{ inputs.target_branch }}` branch - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: ${{ inputs.target_branch }} - name: Remove existing files first run: git rm -r . - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@v3 with: name: ${{ inputs.artifact_name }} diff --git a/.github/workflows/github-actions-bot.yml b/.github/workflows/github-actions-bot.yml index 727b0f4ebd..810cef74e3 100644 --- a/.github/workflows/github-actions-bot.yml +++ b/.github/workflows/github-actions-bot.yml @@ -34,7 +34,7 @@ jobs: WORKFLOW_ID: ${{github.event.workflow_run.id}} - name: Add comment on PR - uses: actions/github-script@v5 + uses: actions/github-script@v6 with: script: | import fs from 'node:fs'; @@ -58,7 +58,7 @@ jobs: cmd: ${{ steps.parse-cmd.outputs.cmd }} pullRequestJSON: ${{ steps.parse-cmd.outputs.pullRequestJSON }} steps: - - uses: actions/github-script@v5 + - uses: actions/github-script@v6 with: script: | await github.rest.reactions.createForIssueComment({ @@ -68,7 +68,7 @@ jobs: }); - id: parse-cmd - uses: actions/github-script@v5 + uses: actions/github-script@v6 with: script: | const comment = context.payload.comment.body; @@ -102,12 +102,12 @@ jobs: if: needs.accept-cmd.result != 'skipped' && always() runs-on: ubuntu-latest steps: - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@v3 with: name: replyMessage - if: failure() - uses: actions/github-script@v5 + uses: actions/github-script@v6 with: script: | import fs from 'node:fs'; @@ -131,7 +131,7 @@ jobs: RUN_URL: ${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}} - if: always() - uses: actions/github-script@v5 + uses: actions/github-script@v6 with: script: | import fs from 'node:fs'; diff --git a/.github/workflows/mutation-testing.yml b/.github/workflows/mutation-testing.yml index 910dfc19b3..7e60924d5a 100644 --- a/.github/workflows/mutation-testing.yml +++ b/.github/workflows/mutation-testing.yml @@ -9,12 +9,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: persist-credentials: false - name: Setup Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: cache: npm node-version-file: '.node-version' @@ -26,7 +26,7 @@ jobs: run: npm run testonly:mutate - name: Upload mutation testing report - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: mutationTestingReport path: ./reports/mutation/mutation.html diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index d71e6fb4b9..3fd1eeee26 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: persist-credentials: false @@ -19,7 +19,7 @@ jobs: run: 'git fetch --depth=1 origin "$BASE_SHA:refs/tags/BASE"' - name: Setup Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: cache: npm node-version-file: '.node-version' @@ -31,7 +31,7 @@ jobs: run: 'npm run diff:npm BASE HEAD' - name: Upload generated report - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 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 3970aca533..8ce05d0302 100644 --- a/.github/workflows/pull_request_opened.yml +++ b/.github/workflows/pull_request_opened.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Upload event.json - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: event.json path: ${{ github.event_path }}