Skip to content

Commit

Permalink
Bump lerna to 7 (#614)
Browse files Browse the repository at this point in the history
* Bump lerna and remove deprecated link command

* Update github action run script

* Bump compressed-size-action to not use node 12

* Use full commit SHA for compressed-size-action
  • Loading branch information
lindskogen authored Oct 9, 2023
1 parent d0bc10e commit d1c8076
Show file tree
Hide file tree
Showing 5 changed files with 1,030 additions and 822 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,26 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Prepare repository
run: git fetch --unshallow --tags
- name: Setup Node
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 18
cache: 'yarn'
cache-dependency-path: '**/yarn.lock'
- name: install, build and test
run: |
yarn install --frozen-lockfile
yarn lerna link
yarn pre-build-check
yarn build-packages
yarn post-build-check
env:
CI: true
- name: "Compressed Size"
uses: preactjs/compressed-size-action@v2
uses: preactjs/compressed-size-action@8a15fc9a36a94c8c3f7835af11a4924da7e95c7c
with:
build-script: "-v" # Will execute `yarn run -v` (essentially a no-op)
pattern: "packages/*/dist/*.js"
Expand Down
1 change: 0 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

```
$ yarn
$ yarn lerna link
$ yarn build-all
```

Expand Down
5 changes: 2 additions & 3 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"packages": ["packages/*"],
"version": "18.12.0",
"command": {
"publish": {
"verifyAccess": false
}
},
"useWorkspaces": true,
"exact": true
"exact": true,
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"identity-obj-proxy": "^3.0.0",
"jest": "^28.1.1",
"jest-environment-jsdom": "^28.1.1",
"lerna": "^6.5.1",
"lerna": "^7.3.0",
"path-that-svg": "1.2.4",
"svgson": "4.1.0",
"lint-staged": "^12.1.2",
Expand Down
Loading

0 comments on commit d1c8076

Please sign in to comment.