Skip to content

Commit

Permalink
Bump GitHub actions (MetaMask#853)
Browse files Browse the repository at this point in the history
* Bump GitHub actions

* Replace set-output

* formatting

* formatting

* Use bash
  • Loading branch information
FrederikBolding authored Oct 24, 2022
1 parent b434ac3 commit 4356412
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 18 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/build-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ jobs:
matrix:
node-version: [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 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: .yarn/cache
key: yarn-cache-${{ runner.os }}-${{ steps.yarn-version.outputs.YARN_VERSION }}-${{ hashFiles('yarn.lock') }}
Expand Down Expand Up @@ -60,15 +60,16 @@ jobs:
matrix:
os: [macOS-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Get Yarn version
run: echo "::set-output name=YARN_VERSION::$(yarn --version)"
run: echo "YARN_VERSION=$(yarn --version)" >> $GITHUB_OUTPUT
shell: bash
id: yarn-version
- name: Cache yarn dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: .yarn/cache
key: yarn-cache-${{ runner.os }}-${{ steps.yarn-version.outputs.YARN_VERSION }}-${{ hashFiles('yarn.lock') }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/create-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand All @@ -43,7 +43,7 @@ jobs:
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
- uses: actions/upload-artifact@v3
with:
name: release-authors
path: gh-action__release-authors
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ 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)
- 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/[email protected]
Expand All @@ -50,7 +50,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
Expand All @@ -69,7 +69,7 @@ jobs:
runs-on: ubuntu-latest
needs: npm-publish-dry-run
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
ref: ${{ github.sha }}
- uses: actions/cache@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/require-additional-reviewer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
statuses: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
# If the base branch has been merged into the release branch, we
# need to find the earliest common ancestor commit of the base and
Expand Down

0 comments on commit 4356412

Please sign in to comment.