diff --git a/.github/workflows/create-release-pr.yml b/.github/workflows/create-release-pr.yml index e843833..0cd2a0a 100644 --- a/.github/workflows/create-release-pr.yml +++ b/.github/workflows/create-release-pr.yml @@ -21,7 +21,7 @@ jobs: contents: write pull-requests: write steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: # This is to guarantee that the most recent tag is fetched. # This can be configured to a more reasonable value by consumers. @@ -29,22 +29,13 @@ jobs: # We check out the specified branch, which will be used as the base # branch for all git operations and the release PR. ref: ${{ github.event.inputs.base-branch }} - - name: Get Node.js version - id: nvm - run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc) - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v4 with: - node-version: ${{ steps.nvm.outputs.NODE_VERSION }} + node-version-file: .nvmrc + cache: yarn - uses: MetaMask/action-create-release-pr@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: release-type: ${{ github.event.inputs.release-type }} release-version: ${{ github.event.inputs.release-version }} - artifacts-path: gh-action__release-authors - # Upload the release author artifact for use in subsequent workflows - - uses: actions/upload-artifact@v2 - with: - name: release-authors - path: gh-action__release-authors - if-no-files-found: error diff --git a/.github/workflows/lint-test.yml b/.github/workflows/lint-test.yml index f08b1eb..9150d9a 100644 --- a/.github/workflows/lint-test.yml +++ b/.github/workflows/lint-test.yml @@ -16,28 +16,16 @@ jobs: - 20.x - 22.x steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - name: Get Yarn cache directory - run: echo "::set-output name=YARN_CACHE_DIR::$(yarn cache dir)" - id: yarn-cache-dir - - name: Get Yarn version - run: echo "::set-output name=YARN_VERSION::$(yarn --version)" - id: yarn-version - - name: Cache yarn dependencies - uses: actions/cache@v2 - with: - path: ${{ steps.yarn-cache-dir.outputs.YARN_CACHE_DIR }} - key: yarn-cache-${{ runner.os }}-${{ steps.yarn-version.outputs.YARN_VERSION }}-${{ hashFiles('yarn.lock') }} + cache: yarn - run: yarn --frozen-lockfile --ignore-engines - run: yarn allow-scripts - run: yarn build - run: yarn lint - # def remove before node.js v140 - if: "${{ !startsWith(matrix.node-version, '14') }}" - run: yarn test - name: Validate RC changelog if: ${{ startsWith(github.head_ref, 'release/') }} diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 31484ac..bd77e65 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -13,17 +13,14 @@ jobs: startsWith(github.event.pull_request.head.ref, 'release/') runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: # We check out the release pull request's base branch, which will be # used as the base branch for all git operations. ref: ${{ github.event.pull_request.base.ref }} - - name: Get Node.js version - id: nvm - run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc) - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v4 with: - node-version: ${{ steps.nvm.outputs.NODE_VERSION }} + node-version-file: .nvmrc - uses: MetaMask/action-publish-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}