From 53f7b241c55ac39344430f07cf5e0c9361a6b4fd Mon Sep 17 00:00:00 2001 From: Keith Date: Tue, 23 Jul 2024 17:14:52 +0900 Subject: [PATCH] ci: bump github actions 1. set version of node.js 20.15.1 2. bump the followings - tj-actions/changed-files - actions/checkout - peter-evans/create-pull-request - peterjgrainger/action-create-branch Ref: https://github.com/Magickbase/neuron-public-issues/issues/366 --- .github/workflows/check-code-style.yml | 2 +- .github/workflows/check_storybook.yml | 2 +- .github/workflows/merge_released_into_develop.yml | 2 +- .github/workflows/package.yml | 2 +- .github/workflows/package_for_test.yml | 2 +- .github/workflows/unit_tests.yml | 2 +- .github/workflows/update_ckb_client_versions.yml | 13 ++----------- .github/workflows/update_neuron_compatible.yml | 13 ++----------- .github/workflows/update_wallet_env.yml | 4 ++-- 9 files changed, 12 insertions(+), 30 deletions(-) diff --git a/.github/workflows/check-code-style.yml b/.github/workflows/check-code-style.yml index 3584d79ce5..292eca11e9 100644 --- a/.github/workflows/check-code-style.yml +++ b/.github/workflows/check-code-style.yml @@ -31,7 +31,7 @@ jobs: - name: Changed Files id: changed-files - uses: tj-actions/changed-files@v41 + uses: tj-actions/changed-files@v44 with: files: "packages/**/*.{js,cjs,mjs,jsx,ts,tsx,css,scss}" diff --git a/.github/workflows/check_storybook.yml b/.github/workflows/check_storybook.yml index 82aded4a8d..26cf157f13 100644 --- a/.github/workflows/check_storybook.yml +++ b/.github/workflows/check_storybook.yml @@ -9,7 +9,7 @@ jobs: strategy: matrix: node: - - 18.12.0 + - 20.15.1 os: - macos-latest - ubuntu-20.04 diff --git a/.github/workflows/merge_released_into_develop.yml b/.github/workflows/merge_released_into_develop.yml index 5870eacb21..fc1af620da 100644 --- a/.github/workflows/merge_released_into_develop.yml +++ b/.github/workflows/merge_released_into_develop.yml @@ -13,7 +13,7 @@ jobs: permissions: pull-requests: write steps: - - uses: actions/checkout@master + - uses: actions/checkout@v4 - name: Request uses: repo-sync/pull-request@v2 with: diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 0b74b02f2f..d1d21db08c 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: node: - - 18.12.0 + - 20.15.1 os: - macos-latest - ubuntu-20.04 diff --git a/.github/workflows/package_for_test.yml b/.github/workflows/package_for_test.yml index e242d682cc..6527d3f7f2 100644 --- a/.github/workflows/package_for_test.yml +++ b/.github/workflows/package_for_test.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: node: - - 18.12.0 + - 20.15.1 os: - macos-latest - ubuntu-20.04 diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 334bc4c2f9..0fb3c58f1d 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -9,7 +9,7 @@ jobs: strategy: matrix: node: - - 20.11.1 + - 20.15.1 os: - macos-latest - ubuntu-20.04 diff --git a/.github/workflows/update_ckb_client_versions.yml b/.github/workflows/update_ckb_client_versions.yml index b2834a34bf..76bb3ced6b 100644 --- a/.github/workflows/update_ckb_client_versions.yml +++ b/.github/workflows/update_ckb_client_versions.yml @@ -20,7 +20,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: 18.x + node-version: 20.15.1 - name: Update versions id: update_versions @@ -28,19 +28,10 @@ jobs: npm run update:client-versions git add .ckb-version .ckb-light-version compatible.json - - name: Set GPG - uses: crazy-max/ghaction-import-gpg@v6 - with: - gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} - passphrase: ${{ secrets.GPG_PASSPHRASE }} - git_user_signingkey: true - git_commit_gpgsign: true - - name: Open PR to develop branch - uses: peter-evans/create-pull-request@v5 + uses: peter-evans/create-pull-request@v6 with: title: Update ckb client versions commit-message: 'feat: update ckb client versions' body: 'Update versions of builtin CKB node and light client' - committer: Chen Yu branch: update-ckb-client-versions diff --git a/.github/workflows/update_neuron_compatible.yml b/.github/workflows/update_neuron_compatible.yml index 0442127f93..cd1957a006 100644 --- a/.github/workflows/update_neuron_compatible.yml +++ b/.github/workflows/update_neuron_compatible.yml @@ -23,7 +23,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: 20.x + node-version: 20.15.1 - name: Update versions id: update_versions @@ -31,20 +31,11 @@ jobs: npm run update:neuron-compatible git add compatible.json - - name: Set GPG - uses: crazy-max/ghaction-import-gpg@v6 - with: - gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} - passphrase: ${{ secrets.GPG_PASSPHRASE }} - git_user_signingkey: true - git_commit_gpgsign: true - - name: Open PR to RC branch - uses: peter-evans/create-pull-request@v5 + uses: peter-evans/create-pull-request@v6 with: title: Update Neuron compatibility table commit-message: 'feat: Update Neuron compatibility table' body: 'Update Neuron compatibility table for a new release' - committer: Chen Yu branch: update-neuron-compatible base: ${{ github.ref_name }} diff --git a/.github/workflows/update_wallet_env.yml b/.github/workflows/update_wallet_env.yml index 5f3d7f090e..8deed99a62 100644 --- a/.github/workflows/update_wallet_env.yml +++ b/.github/workflows/update_wallet_env.yml @@ -14,7 +14,7 @@ jobs: if: ${{ startsWith(github.ref_name, 'rc/') }} steps: - name: Create Branch - uses: peterjgrainger/action-create-branch@v2.4.0 + uses: peterjgrainger/action-create-branch@v3 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: @@ -29,7 +29,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v4 with: - node-version: 18.12.0 + node-version: 20.15.1 - name: Write env file run: |