Skip to content

Commit

Permalink
build: switch to yarn@berry (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
arturovt committed Nov 22, 2021
1 parent e5fc53e commit 04bf2fc
Show file tree
Hide file tree
Showing 6 changed files with 17,612 additions and 12,513 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ngx-lottie.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,15 @@ jobs:
with:
node-version: 14.x

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo '::set-output name=dir::$(yarn config get cacheFolder)'

- uses: actions/cache@v2
id: yarn-cache
with:
path: |
node_modules
${{ steps.yarn-cache-dir-path.outputs.dir }}
~/.cache
key: ${{ runner.os }}-yarn-${{ hashFiles('./yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn
Expand All @@ -35,7 +39,7 @@ jobs:
if: steps.yarn-cache.outputs.cache-hit != 'true'
env:
HUSKY_SKIP_INSTALL: 'true'
run: yarn --frozen-lockfile --no-progress --non-interactive
run: yarn

- run: yarn nx affected:lint --parallel --base=origin/master
- run: yarn nx affected:test --parallel --base=origin/master
Expand Down
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,11 @@ yarn-error.log
coverage
.husky
migrations.json

.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
768 changes: 768 additions & 0 deletions .yarn/releases/yarn-3.1.0.cjs

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-3.1.0.cjs
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,6 @@
"*.{ts,html,scss,json,md}": [
"prettier --write"
]
}
},
"packageManager": "yarn@3.1.0"
}

0 comments on commit 04bf2fc

Please sign in to comment.