Workaround yarn bug with self-referencing packages (#12906)
This commit is contained in:
parent
bb558aaf28
commit
74db827c0a
15
.github/workflows/ci.yml
vendored
15
.github/workflows/ci.yml
vendored
@ -288,6 +288,21 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||||
key: yarn-${{ hashFiles('yarn.lock') }}
|
key: yarn-${{ hashFiles('yarn.lock') }}
|
||||||
|
# See https://github.com/babel/babel/pull/12906
|
||||||
|
- name: Workaround yarn bug
|
||||||
|
run: |
|
||||||
|
echo '{
|
||||||
|
"private": true,
|
||||||
|
"devDependencies": {
|
||||||
|
"@babel/runtime": "workspace:*",
|
||||||
|
"@babel/runtime-corejs3": "workspace:*"
|
||||||
|
}
|
||||||
|
}' > packages/package.json
|
||||||
|
node -e "
|
||||||
|
const pkg = require('./package.json');
|
||||||
|
pkg.workspaces.push('packages');
|
||||||
|
fs.writeFileSync('package.json', JSON.stringify(pkg, null, 2))
|
||||||
|
"
|
||||||
- name: Install
|
- name: Install
|
||||||
run: yarn install
|
run: yarn install
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v2
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user