-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Yarn 4 #6215
Open
snowystinger
wants to merge
63
commits into
main
Choose a base branch
from
yarn-4
base: main
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Yarn 4 #6215
Changes from 51 commits
Commits
Show all changes
63 commits
Select commit
Hold shift + click to select a range
c8d672d
Yarn 4 update
snowystinger 859fe6c
Convert more package lints
snowystinger d707707
fix broken constraint
snowystinger 0369b4e
enforce private and circular checks
snowystinger 03e51d5
fix yarn install
snowystinger c86e306
fix lock file
snowystinger 40eb43f
fix other react installs
snowystinger dbb5210
update build branch api
snowystinger 0385610
enable corepack earlier?
snowystinger ae9877c
build branch api should not be an immutable install
snowystinger d204587
try to make lock file mutable
snowystinger cee068c
use undocumented flag
snowystinger e9eacc5
fix build step
snowystinger ef2ccaf
fix test esm
snowystinger dd0f75f
Merge branch 'main' into yarn-4
snowystinger b4eb9ae
check all yarn versions
snowystinger 5fa0d98
fix names and fix deploy
snowystinger 73598cf
get published check mostly working, will need more investigation
snowystinger 44f0582
turn on docs verdaccio
snowystinger 4f38f54
try to replace lerna usage in verdaccio
snowystinger 62e8dfc
Rearrange where to publish to?
snowystinger 1ed80b2
run the correct command
snowystinger 825a1a6
get verdaccio working fingers crossed
snowystinger 4ea35a5
set up auth hopefully
snowystinger d0968cf
Force yarn 4 on the examples
snowystinger 79d47ee
empty yarn locks required for examples not part of the overall worksp…
snowystinger 16e293e
Do i need yarn separately installed for each?
snowystinger 99bbddc
fix docs from verdaccio
snowystinger 992dc24
copy over yarn distribution
snowystinger 97a0334
skip step to test the rest while debugging
snowystinger b2f558e
fix install immutables
snowystinger 46032db
re-enable docs prod
snowystinger a045a86
Add helpful logs
snowystinger 78b84fd
update install state
snowystinger 71d9a94
lock down version of dep so we don't get install error
snowystinger 3659d3d
small fixes to scripts in quest to win
snowystinger 85a7422
fix docs build!
snowystinger 61b69e9
update starters
snowystinger 71a1130
fix starters more
snowystinger 0e4d071
loosen restrictions on yarn install for starters
snowystinger f6a2a71
fix resolutions hopefully
snowystinger cf0dc05
run directly
snowystinger 85016fa
call script correctly
snowystinger 4f18b20
add logs to determine where the fails is
snowystinger d19ec04
relocate storage
snowystinger 241a3f4
Merge branch 'main' into yarn-4
snowystinger c0bdffa
update install state
snowystinger 03a37fe
dedupe packages
snowystinger 305e751
remove install-state
snowystinger 4894126
ignore install state in the future
snowystinger 412cce0
move storage back to default location
snowystinger c0dab4c
debugging
snowystinger ec0a4d5
more debugging scripts
snowystinger d55c3fe
Try another location
snowystinger 759a136
compare yarn locks
snowystinger fbbba2b
a little cleanup
snowystinger 0e96872
disable extra verdaccio step
snowystinger c650741
Merge branch 'main' into yarn-4
snowystinger c496951
Merge branch 'main' into yarn-4
snowystinger 8bb3435
Merge branch 'main' into yarn-4
snowystinger 3c4e271
fix esm test step
snowystinger 13c3a27
ensure that the verdaccio build still works
snowystinger 68ef5ee
Merge branch 'main' into yarn-4
snowystinger File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,11 +53,6 @@ jobs: | |
executor: rsp-large | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- rsp-yarn-{{ .Environment.CACHE_VERSION }}-{{ .Branch }}-{{ checksum "yarn.lock" }} | ||
- rsp-yarn-{{ .Environment.CACHE_VERSION }}-{{ .Branch }}- | ||
- rsp-yarn-{{ .Environment.CACHE_VERSION }}- | ||
|
||
- run: | ||
name: Write npmrc | ||
|
@@ -67,14 +62,14 @@ jobs: | |
fi | ||
|
||
- run: | ||
name: build | ||
name: Yarn version | ||
command: | | ||
yarn --pure-lockfile --cache-folder ~/.cache/yarn | ||
yarn -v | ||
|
||
- save_cache: | ||
paths: | ||
- ~/.cache/yarn | ||
key: rsp-yarn-{{ .Environment.CACHE_VERSION }}-{{ .Branch }}-{{ checksum "yarn.lock" }} | ||
- run: | ||
name: build | ||
command: | | ||
yarn --immutable | ||
|
||
- save_cache: | ||
paths: | ||
|
@@ -85,16 +80,23 @@ jobs: | |
executor: rsp-large | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- rsp-yarn-{{ .Environment.CACHE_VERSION }}-{{ .Branch }}-{{ checksum "yarn.lock" }} | ||
- rsp-yarn-{{ .Environment.CACHE_VERSION }}-{{ .Branch }}- | ||
- rsp-yarn-{{ .Environment.CACHE_VERSION }}- | ||
|
||
- run: | ||
name: Write npmrc | ||
command: | | ||
if [ $NPM_PASSWORD ]; then | ||
cp .circleci/.npmrc .npmrc | ||
fi | ||
|
||
- run: | ||
name: Yarn version | ||
command: | | ||
yarn -v | ||
|
||
- run: | ||
name: build | ||
command: | | ||
yarn install --pure-lockfile --cache-folder ~/.cache/yarn && yarn install-16 --cache-folder ~/.cache/yarn | ||
yarn install --immutable && yarn install-16 | ||
|
||
- save_cache: | ||
paths: | ||
|
@@ -105,16 +107,23 @@ jobs: | |
executor: rsp-large | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- rsp-yarn-{{ .Environment.CACHE_VERSION }}-{{ .Branch }}-{{ checksum "yarn.lock" }} | ||
- rsp-yarn-{{ .Environment.CACHE_VERSION }}-{{ .Branch }}- | ||
- rsp-yarn-{{ .Environment.CACHE_VERSION }}- | ||
|
||
- run: | ||
name: Write npmrc | ||
command: | | ||
if [ $NPM_PASSWORD ]; then | ||
cp .circleci/.npmrc .npmrc | ||
fi | ||
|
||
- run: | ||
name: Yarn version | ||
command: | | ||
yarn -v | ||
|
||
- run: | ||
name: build | ||
command: | | ||
yarn install --pure-lockfile --cache-folder ~/.cache/yarn && yarn install-17 --cache-folder ~/.cache/yarn | ||
yarn install --immutable && yarn install-17 | ||
|
||
- save_cache: | ||
paths: | ||
|
@@ -125,16 +134,23 @@ jobs: | |
executor: rsp-large | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- rsp-yarn-{{ .Environment.CACHE_VERSION }}-{{ .Branch }}-{{ checksum "yarn.lock" }} | ||
- rsp-yarn-{{ .Environment.CACHE_VERSION }}-{{ .Branch }}- | ||
- rsp-yarn-{{ .Environment.CACHE_VERSION }}- | ||
|
||
- run: | ||
name: Write npmrc | ||
command: | | ||
if [ $NPM_PASSWORD ]; then | ||
cp .circleci/.npmrc .npmrc | ||
fi | ||
|
||
- run: | ||
name: Yarn version | ||
command: | | ||
yarn -v | ||
|
||
- run: | ||
name: build | ||
command: | | ||
yarn install --pure-lockfile --cache-folder ~/.cache/yarn && yarn install-canary --cache-folder ~/.cache/yarn | ||
yarn install --immutable && yarn install-canary | ||
|
||
- save_cache: | ||
paths: | ||
|
@@ -147,6 +163,11 @@ jobs: | |
- restore_cache: | ||
key: react-spectrum-{{ .Environment.CACHE_VERSION }}-{{ .Environment.CIRCLE_SHA1 }} | ||
|
||
- run: | ||
name: Yarn version | ||
command: | | ||
yarn -v | ||
|
||
- run: | ||
name: test ssr | ||
command: yarn test:ssr | ||
|
@@ -160,6 +181,11 @@ jobs: | |
|
||
- run: mkdir ~/junit | ||
|
||
- run: | ||
name: Yarn version | ||
command: | | ||
yarn -v | ||
|
||
- run: | ||
name: test | ||
command: | | ||
|
@@ -183,6 +209,11 @@ jobs: | |
- restore_cache: | ||
key: react-spectrum16-{{ .Environment.CACHE_VERSION }}-{{ .Environment.CIRCLE_SHA1 }} | ||
|
||
- run: | ||
name: Yarn version | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. was useful for debugging, feel like it should stay in |
||
command: | | ||
yarn -v | ||
|
||
- run: | ||
name: test ssr | ||
command: | | ||
|
@@ -194,6 +225,11 @@ jobs: | |
- restore_cache: | ||
key: react-spectrum17-{{ .Environment.CACHE_VERSION }}-{{ .Environment.CIRCLE_SHA1 }} | ||
|
||
- run: | ||
name: Yarn version | ||
command: | | ||
yarn -v | ||
|
||
- run: | ||
name: test ssr | ||
command: | | ||
|
@@ -205,6 +241,11 @@ jobs: | |
- restore_cache: | ||
key: react-spectrum-canary-{{ .Environment.CACHE_VERSION }}-{{ .Environment.CIRCLE_SHA1 }} | ||
|
||
- run: | ||
name: Yarn version | ||
command: | | ||
yarn -v | ||
|
||
- run: | ||
name: test ssr | ||
command: | | ||
|
@@ -219,6 +260,11 @@ jobs: | |
|
||
- run: mkdir ~/junit | ||
|
||
- run: | ||
name: Yarn version | ||
command: | | ||
yarn -v | ||
|
||
- run: | ||
name: test | ||
command: | | ||
|
@@ -243,6 +289,11 @@ jobs: | |
|
||
- run: mkdir ~/junit | ||
|
||
- run: | ||
name: Yarn version | ||
command: | | ||
yarn -v | ||
|
||
- run: | ||
name: test | ||
command: | | ||
|
@@ -267,6 +318,11 @@ jobs: | |
|
||
- run: mkdir ~/junit | ||
|
||
- run: | ||
name: Yarn version | ||
command: | | ||
yarn -v | ||
|
||
- run: | ||
name: test | ||
command: | | ||
|
@@ -288,11 +344,16 @@ jobs: | |
- restore_cache: | ||
key: react-spectrum-{{ .Environment.CACHE_VERSION }}-{{ .Environment.CIRCLE_SHA1 }} | ||
|
||
- run: | ||
name: Yarn version | ||
command: | | ||
yarn -v | ||
|
||
- run: | ||
name: test | ||
command: | | ||
make build | ||
yarn lerna run prepublishOnly | ||
yarn workspaces foreach --all -pt run prepublishOnly | ||
node --loader ./scripts/esm-support/loader.mjs ./scripts/esm-support/testESM.mjs | ||
|
||
lint: | ||
|
@@ -301,6 +362,11 @@ jobs: | |
- restore_cache: | ||
key: react-spectrum-{{ .Environment.CACHE_VERSION }}-{{ .Environment.CIRCLE_SHA1 }} | ||
|
||
- run: | ||
name: Yarn version | ||
command: | | ||
yarn -v | ||
|
||
- run: | ||
name: lint | ||
command: yarn lint | ||
|
@@ -311,6 +377,15 @@ jobs: | |
- restore_cache: | ||
key: react-spectrum-{{ .Environment.CACHE_VERSION }}-{{ .Environment.CIRCLE_SHA1 }} | ||
|
||
- run: | ||
name: Yarn version | ||
command: | | ||
yarn -v | ||
|
||
- run: | ||
name: Corepack | ||
command: corepack enable --install-directory ~/bin | ||
|
||
- run: | ||
name: build branch apis | ||
command: yarn build:api-branch | ||
|
@@ -326,6 +401,11 @@ jobs: | |
- restore_cache: | ||
key: react-spectrum-{{ .Environment.CACHE_VERSION }}-{{ .Environment.CIRCLE_SHA1 }} | ||
|
||
- run: | ||
name: Yarn version | ||
command: | | ||
yarn -v | ||
|
||
- run: | ||
name: build fork-point apis | ||
command: | | ||
|
@@ -342,6 +422,11 @@ jobs: | |
- restore_cache: | ||
key: react-spectrum-{{ .Environment.CACHE_VERSION }}-{{ .Environment.CIRCLE_SHA1 }} | ||
|
||
- run: | ||
name: Yarn version | ||
command: | | ||
yarn -v | ||
|
||
- attach_workspace: | ||
at: /tmp/dist | ||
|
||
|
@@ -350,7 +435,7 @@ jobs: | |
command: | | ||
yarn test:parcel | ||
mkdir -p dist | ||
yarn --silent compare:apis --isCI --branch-api-dir="/tmp/dist/branch-api" --base-api-dir="/tmp/dist/base-api" | tee dist/ts-diff.txt | ||
yarn compare:apis --isCI --branch-api-dir="/tmp/dist/branch-api" --base-api-dir="/tmp/dist/base-api" | tee dist/ts-diff.txt | ||
|
||
- persist_to_workspace: | ||
root: dist | ||
|
@@ -363,6 +448,11 @@ jobs: | |
- restore_cache: | ||
key: react-spectrum-{{ .Environment.CACHE_VERSION }}-{{ .Environment.CIRCLE_SHA1 }} | ||
|
||
- run: | ||
name: Yarn version | ||
command: | | ||
yarn -v | ||
|
||
- run: | ||
name: check-examples | ||
command: make check-examples | ||
|
@@ -373,6 +463,11 @@ jobs: | |
- restore_cache: | ||
key: react-spectrum-{{ .Environment.CACHE_VERSION }}-{{ .Environment.CIRCLE_SHA1 }} | ||
|
||
- run: | ||
name: Yarn version | ||
command: | | ||
yarn -v | ||
|
||
- run: | ||
name: build storybook | ||
command: make storybook | ||
|
@@ -388,6 +483,11 @@ jobs: | |
- restore_cache: | ||
key: react-spectrum16-{{ .Environment.CACHE_VERSION }}-{{ .Environment.CIRCLE_SHA1 }} | ||
|
||
- run: | ||
name: Yarn version | ||
command: | | ||
yarn -v | ||
|
||
- run: | ||
name: build storybook-16 | ||
command: make storybook-16 | ||
|
@@ -403,6 +503,11 @@ jobs: | |
- restore_cache: | ||
key: react-spectrum17-{{ .Environment.CACHE_VERSION }}-{{ .Environment.CIRCLE_SHA1 }} | ||
|
||
- run: | ||
name: Yarn version | ||
command: | | ||
yarn -v | ||
|
||
- run: | ||
name: build storybook-17 | ||
command: make storybook-17 | ||
|
@@ -418,6 +523,11 @@ jobs: | |
- restore_cache: | ||
key: react-spectrum-{{ .Environment.CACHE_VERSION }}-{{ .Environment.CIRCLE_SHA1 }} | ||
|
||
- run: | ||
name: Yarn version | ||
command: | | ||
yarn -v | ||
|
||
- run: | ||
name: build docs | ||
command: make website | ||
|
@@ -433,6 +543,11 @@ jobs: | |
- restore_cache: | ||
key: react-spectrum-{{ .Environment.CACHE_VERSION }}-{{ .Environment.CIRCLE_SHA1 }} | ||
|
||
- run: | ||
name: Yarn version | ||
command: | | ||
yarn -v | ||
|
||
- run: | ||
name: build docs | ||
command: make website-production | ||
|
@@ -448,6 +563,11 @@ jobs: | |
- restore_cache: | ||
key: react-spectrum-{{ .Environment.CACHE_VERSION }}-{{ .Environment.CIRCLE_SHA1 }} | ||
|
||
- run: | ||
name: Yarn version | ||
command: | | ||
yarn -v | ||
|
||
- run: | ||
name: run verdaccio | ||
command: ./scripts/verdaccio.sh ci | ||
|
@@ -464,6 +584,7 @@ jobs: | |
steps: | ||
- attach_workspace: | ||
at: /tmp/dist | ||
|
||
- run: | ||
name: deploy | ||
command: | | ||
|
@@ -592,9 +713,6 @@ workflows: | |
requires: | ||
- install | ||
- docs-verdaccio: | ||
filters: | ||
branches: | ||
only: main | ||
requires: | ||
- install | ||
- deploy: | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cache is checked into github right now, but we could change the caching strategy. This is the recommended one though
https://yarnpkg.com/features/caching
New recommendations will come eventually