diff --git a/.github/workflows/build-lint-test.yml b/.github/workflows/build-lint-test.yml index c0ded95..15793b9 100644 --- a/.github/workflows/build-lint-test.yml +++ b/.github/workflows/build-lint-test.yml @@ -13,19 +13,19 @@ jobs: matrix: node-version: [14.x, 16.x, 18.x] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - name: Get Yarn cache directory - run: echo "::set-output name=YARN_CACHE_DIR::$(yarn cache dir)" + run: echo "YARN_CACHE_DIR=$(yarn cache dir)" >> "$GITHUB_OUTPUT" id: yarn-cache-dir - name: Get Yarn version - run: echo "::set-output name=YARN_VERSION::$(yarn --version)" + run: echo "YARN_VERSION=$(yarn --version)" >> "$GITHUB_OUTPUT" id: yarn-version - name: Cache yarn dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ${{ steps.yarn-cache-dir.outputs.YARN_CACHE_DIR }} key: yarn-cache-${{ runner.os }}-${{ steps.yarn-version.outputs.YARN_VERSION }}-${{ hashFiles('yarn.lock') }} @@ -38,11 +38,11 @@ jobs: name: Validate changelog runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Get Node.js version id: nvm - run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc) - - uses: actions/setup-node@v2 + run: echo "NODE_VERSION=$(cat .nvmrc)" >> "$GITHUB_OUTPUT" + - uses: actions/setup-node@v3 with: node-version: ${{ steps.nvm.outputs.NODE_VERSION }} - run: yarn --frozen-lockfile diff --git a/.github/workflows/create-release-pr.yml b/.github/workflows/create-release-pr.yml index c34ce9a..ed48eb5 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@v3 with: # This is to guarantee that the most recent tag is fetched. # This can be configured to a more reasonable value by consumers. @@ -31,8 +31,8 @@ jobs: 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 + run: echo "NODE_VERSION=$(cat .nvmrc)" >> "$GITHUB_OUTPUT" + - uses: actions/setup-node@v3 with: node-version: ${{ steps.nvm.outputs.NODE_VERSION }} - uses: MetaMask/action-create-release-pr@v1 diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 31484ac..7275462 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -13,15 +13,15 @@ jobs: startsWith(github.event.pull_request.head.ref, 'release/') runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 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 + run: echo "NODE_VERSION=$(cat .nvmrc)" >> "$GITHUB_OUTPUT" + - uses: actions/setup-node@v3 with: node-version: ${{ steps.nvm.outputs.NODE_VERSION }} - uses: MetaMask/action-publish-release@v1