Skip to content

Commit

Permalink
chore(ci): use yarn v4 in GitHub Actions (#24973)
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat authored Jun 3, 2024
1 parent 0dc23ab commit 71e4a5d
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/add-release-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ jobs:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
steps:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'

- run: corepack enable
- name: Checkout repository
uses: actions/checkout@v4
with:
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/check-pr-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,17 @@ jobs:
pull-requests: read

steps:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- run: corepack enable

- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1 # This retrieves only the latest commit.

- run: corepack enable

- name: Set up Node.js
uses: actions/setup-node@v4
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/check-template-and-add-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ jobs:
check-template-and-add-labels:
runs-on: ubuntu-latest
steps:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- run: corepack enable

- name: Checkout repository
uses: actions/checkout@v4
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/close-bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ jobs:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'Version-v')
steps:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- run: corepack enable

- name: Checkout repository
uses: actions/checkout@v4
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/codespaces.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ jobs:
name: Generate cache image
runs-on: ubuntu-latest
steps:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- run: corepack enable

- name: Checkout repository
uses: actions/checkout@v4
with:
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/fitness-functions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- run: corepack enable

- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- run: corepack enable

- name: Use Node.js
uses: actions/setup-node@v4
with:
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/update-lavamoat-policies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ jobs:
outputs:
COMMIT_SHA: ${{ steps.commit-sha.outputs.COMMIT_SHA }}
steps:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- run: corepack enable
- name: Checkout repository
uses: actions/checkout@v4
- name: Checkout pull request
Expand All @@ -75,6 +80,11 @@ jobs:
needs:
- prepare
steps:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- run: corepack enable
- name: Checkout repository
uses: actions/checkout@v4
- name: Checkout pull request
Expand Down Expand Up @@ -109,6 +119,11 @@ jobs:
- prepare
- update-lavamoat-build-policy
steps:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- run: corepack enable
- name: Checkout repository
uses: actions/checkout@v4
- name: Checkout pull request
Expand Down

0 comments on commit 71e4a5d

Please sign in to comment.