From 9de26357cfacb10db664c2a84738746c7e74cd62 Mon Sep 17 00:00:00 2001 From: Ricky Miller Date: Mon, 24 Oct 2022 16:14:47 -0400 Subject: [PATCH 1/3] bump --- .github/workflows/create-release-pr.yml | 4 ++-- .github/workflows/lint-build-test.yml | 4 ++-- .github/workflows/publish-release.yml | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/create-release-pr.yml b/.github/workflows/create-release-pr.yml index c34ce9a7a59..da3b5f140e3 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. @@ -32,7 +32,7 @@ jobs: - 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@v3 with: node-version: ${{ steps.nvm.outputs.NODE_VERSION }} - uses: MetaMask/action-create-release-pr@v1 diff --git a/.github/workflows/lint-build-test.yml b/.github/workflows/lint-build-test.yml index 272914fe8d1..16e2dcb3e10 100644 --- a/.github/workflows/lint-build-test.yml +++ b/.github/workflows/lint-build-test.yml @@ -13,9 +13,9 @@ jobs: matrix: node-version: [14.x, 16.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 diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 65d0e085684..cf276ed1883 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -22,14 +22,14 @@ jobs: runs-on: ubuntu-latest needs: is-release steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: ref: ${{ github.sha }} - name: Get Node.js version id: nvm run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc) - name: Setup Node - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: ${{ steps.nvm.outputs.NODE_VERSION }} - uses: MetaMask/action-publish-release@v2.0.0 @@ -49,7 +49,7 @@ jobs: runs-on: ubuntu-latest needs: publish-release steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: ref: ${{ github.sha }} - uses: actions/cache@v3 @@ -70,7 +70,7 @@ jobs: runs-on: ubuntu-latest needs: publish-npm-dry-run steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: ref: ${{ github.sha }} - uses: actions/cache@v3 From af56ab2b8767f299a22064c8c1e1b52455cd41e9 Mon Sep 17 00:00:00 2001 From: Ricky Miller Date: Mon, 24 Oct 2022 16:17:05 -0400 Subject: [PATCH 2/3] remove set-output re: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ --- .github/workflows/create-release-pr.yml | 2 +- .github/workflows/lint-build-test.yml | 4 ++-- .github/workflows/publish-release.yml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/create-release-pr.yml b/.github/workflows/create-release-pr.yml index da3b5f140e3..2308632ee69 100644 --- a/.github/workflows/create-release-pr.yml +++ b/.github/workflows/create-release-pr.yml @@ -31,7 +31,7 @@ jobs: ref: ${{ github.event.inputs.base-branch }} - name: Get Node.js version id: nvm - run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc) + run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_OUTPUT - uses: actions/setup-node@v3 with: node-version: ${{ steps.nvm.outputs.NODE_VERSION }} diff --git a/.github/workflows/lint-build-test.yml b/.github/workflows/lint-build-test.yml index 16e2dcb3e10..91557ead58e 100644 --- a/.github/workflows/lint-build-test.yml +++ b/.github/workflows/lint-build-test.yml @@ -19,10 +19,10 @@ jobs: with: node-version: ${{ matrix.node-version }} - name: Get Yarn cache directory - run: echo "::set-output name=YARN_CACHE_DIR::$(yarn config get cacheFolder)" + run: echo "YARN_CACHE_DIR=$(yarn config get cacheFolder)" >> $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 diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index cf276ed1883..7bc0f4b66b7 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -27,7 +27,7 @@ jobs: ref: ${{ github.sha }} - name: Get Node.js version id: nvm - run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc) + run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_OUTPUT - name: Setup Node uses: actions/setup-node@v3 with: From 4f3c5a5b68eed6c83ab76d26dcbf008a4d19f849 Mon Sep 17 00:00:00 2001 From: Ricky Miller Date: Mon, 24 Oct 2022 16:19:16 -0400 Subject: [PATCH 3/3] bump actions/cache --- .github/workflows/lint-build-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint-build-test.yml b/.github/workflows/lint-build-test.yml index 91557ead58e..ac28fc25ed4 100644 --- a/.github/workflows/lint-build-test.yml +++ b/.github/workflows/lint-build-test.yml @@ -25,7 +25,7 @@ jobs: 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') }}