Skip to content

Commit

Permalink
Use volta, yarn 4, node 18 (#282)
Browse files Browse the repository at this point in the history
* use volta, yarn 4, node 18

* yarn install

* yarn build
  • Loading branch information
chrisgervang authored Nov 30, 2024
1 parent 5d9b858 commit 696bfae
Show file tree
Hide file tree
Showing 8 changed files with 31,709 additions and 10,071 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,9 @@ jobs:

steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Use Node.js
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
- uses: volta-cli/action@2d68418f32546fd191eb666e232b321d5726484d # v4.1.1
with:
node-version: '18.x'
cache: 'yarn'

- name: Create GitHub release entry
run: |
Expand Down
18 changes: 13 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,28 @@ permissions:
jobs:
test-node:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [20]
permissions:
checks: write
contents: read

steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Use Node.js
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
- uses: volta-cli/action@2d68418f32546fd191eb666e232b321d5726484d # v4.1.1
with:
node-version: '18.x'
node-version: ${{ matrix.node-version }}
cache: 'yarn'

- name: Install dependencies
run: yarn bootstrap
run: |
yarn install
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false

- name: Build packages
run: yarn build

- name: Run tests
run: yarn test-ci
Expand Down
15 changes: 12 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,18 @@ coverage/
tsconfig.tsbuildinfo

*/**/yarn.lock
yarn-error.log
*/**/package-lock.json
package-lock.json
!website/yarn.lock

*/**/.yarn/*
*/**/yarn-error.log

.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

.vscode/
.DS_Store
Expand Down
12 changes: 12 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
nodeLinker: node-modules

supportedArchitectures:
cpu:
- arm64
- x64
- darwin-x64
os:
- current
- darwin
- linux
- win32
1 change: 0 additions & 1 deletion modules/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"dist"
],
"sideEffects": false,
"scripts": {},
"dependencies": {
"@loaders.gl/zip": "^3.0.12",
"@turf/helpers": "^5.1.5",
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,8 @@
"resolutions": {
"@loaders.gl/video": "3.0.12"
},
"dependencies": {}
"volta": {
"node": "18.20.5",
"yarn": "4.5.2"
}
}
18,060 changes: 18,060 additions & 0 deletions website/yarn.lock

Large diffs are not rendered by default.

Loading

0 comments on commit 696bfae

Please sign in to comment.