Skip to content

Commit

Permalink
Workaround setup-node Yarn bug (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 authored Nov 21, 2023
1 parent 41f503c commit 6ac2554
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
# Review gh actions docs if you want to further define triggers, paths, etc
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on

env:
NODE_VERSION: lts/*

permissions:
contents: write

Expand All @@ -19,8 +22,10 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: ${{ env.NODE_VERSION }}
cache: yarn
env:
SKIP_YARN_COREPACK_CHECK: 1

- name: Install dependencies
run: corepack yarn install --immutable
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: yarn
env:
SKIP_YARN_COREPACK_CHECK: 1
- name: Environment Information
run: npx envinfo
- name: Install dependencies
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
merge_group:
types: [checks_requested]

env:
NODE_VERSION: lts/*

concurrency: test-${{ github.ref }}

jobs:
Expand All @@ -20,8 +23,10 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: ${{ env.NODE_VERSION }}
cache: yarn
env:
SKIP_YARN_COREPACK_CHECK: 1

- name: Install dependencies
run: corepack yarn install --immutable
Expand Down

0 comments on commit 6ac2554

Please sign in to comment.