Skip to content

Commit

Permalink
Update GitHub actions dependencies (graphql#3615)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov authored May 30, 2022
1 parent fe8b664 commit 338e3dd
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 47 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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

Expand All @@ -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'
Expand All @@ -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
Expand All @@ -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'
Expand All @@ -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 }}
Expand All @@ -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'
Expand All @@ -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
Expand All @@ -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'
Expand All @@ -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
Expand All @@ -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'
Expand All @@ -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
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 @@ -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'
Expand All @@ -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
Expand All @@ -45,27 +45,27 @@ 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

- 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';
Expand Down Expand Up @@ -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
8 changes: 4 additions & 4 deletions .github/workflows/cmd-run-benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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'
Expand All @@ -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';
Expand All @@ -59,7 +59,7 @@ jobs:
);
- name: Upload replyMessage
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
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 @@ -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 }}

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 @@ -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';
Expand All @@ -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({
Expand All @@ -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;
Expand Down Expand Up @@ -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';
Expand All @@ -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';
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 @@ -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'
Expand All @@ -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
6 changes: 3 additions & 3 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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'
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull_request_opened.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 338e3dd

Please sign in to comment.