Skip to content

Commit

Permalink
Upgrade to yarn berry (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
styu committed Feb 7, 2024
1 parent d0a1a68 commit d664e23
Show file tree
Hide file tree
Showing 195 changed files with 13,999 additions and 1,206 deletions.
35 changes: 3 additions & 32 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,13 @@
version: 2
jobs:
install-dependencies:
docker:
- image: circleci/node:12
steps:
- checkout
- restore_cache:
keys:
- v1-dependency-cache-{{ checksum "yarn.lock" }}
- v1-dependency-cache-
- run: yarn
- run: echo "Checking if lockfiles changed..." && git diff --exit-code
- save_cache:
key: v1-dependency-cache-{{ checksum "yarn.lock" }}
paths:
- node_modules
- persist_to_workspace:
root: '.'
paths:
- yarn.lock

verify:
docker:
- image: circleci/node:12
- image: cimg/node:18.12.0
steps:
- checkout
- run: yarn install --immutable
- attach_workspace:
at: '.'
- restore_cache:
keys:
- v1-dependency-cache-{{ checksum "yarn.lock" }}
- v1-dependency-cache-
- run: yarn test

deploy-npm:
Expand All @@ -40,20 +17,14 @@ jobs:
- checkout
- attach_workspace:
at: '.'
- restore_cache:
key: v1-dependency-cache-{{ checksum "yarn.lock" }}
- run: yarn install --immutable
- run: ./scripts/circle-publish-npm

workflows:
version: 2
verify_deploy:
jobs:
- install-dependencies:
filters:
tags:
only: /.*/
- verify:
requires: [install-dependencies]
filters:
tags:
only: /.*/
Expand Down
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,12 @@ npm-debug.log
### Vim ###
*.sw[op]
*.un~

### Yarn ###
.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
Loading

0 comments on commit d664e23

Please sign in to comment.