Skip to content

Update to use Yarn v3 #828

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
pull_request:

env:
NODE_VERSION: 12
PERCY_PARALLEL_NONCE: ${{ github.run_id }}-${{ github.run_number }}
PERCY_PARALLEL_TOTAL: 1

Expand All @@ -29,13 +28,13 @@ jobs:

- name: Cache Yarn cache and node_modules
id: cache-dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
node_modules
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-${{ env.NODE_VERSION }}-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-

- name: Install dependencies
run: yarn install --frozen-lockfile
Expand All @@ -44,7 +43,6 @@ jobs:
- name: Lint
run: yarn lint


test-app:
name: Test app
runs-on: ubuntu-latest
Expand All @@ -53,7 +51,7 @@ jobs:
- name: Check out a copy of the repo
uses: actions/checkout@v2

- name: Use Node.js 14
- name: Use Node.js v14
uses: volta-cli/action@v4

- name: Get Yarn cache path
Expand All @@ -62,13 +60,13 @@ jobs:

- name: Cache Yarn cache and node_modules
id: cache-dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
node_modules
key: ${{ runner.os }}-14-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-14-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-

- name: Install dependencies
run: yarn install --frozen-lockfile
Expand Down
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ terraform.tfstate.backup
# dependencies
/bower_components/
/node_modules/
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# misc
/.projectile
Expand Down
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,6 @@
],
"volta": {
"node": "14.17.0",
"yarn": "1.22.19"
"yarn": "3.3.0"
}
}
Loading