build: node@18, yarn + corepack (#117)

* build: update node, yarn, use corepack

* ci: node@18 in ci

* ci: use bootstrap to corepack in ci

* build: skip nvm in CI

* ci: mark ci as ci

* build: @parcel/* updates

* build: netlify-cli update
This commit is contained in:
Marc 2023-06-27 12:00:44 -04:00 committed by GitHub
parent d72b6b960c
commit 7e105901c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 2254 additions and 3230 deletions

View file

@ -5,7 +5,8 @@ on:
pull_request:
env:
NODE_VERSION: 16
NODE_VERSION: 18
CI: 1
jobs:
setup:
@ -25,7 +26,7 @@ jobs:
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ env.NODE_VERSION }}
- name: Install dependencies
if: steps.cache-restore.outputs.cache-hit != 'true'
run: yarn
run: . script/bootstrap
lint:
runs-on: ubuntu-latest
name: Lint
@ -45,7 +46,7 @@ jobs:
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ env.NODE_VERSION }}
- name: Lint
run: |
yarn
. script/bootstrap
yarn lint
build:
runs-on: ubuntu-latest
@ -72,7 +73,7 @@ jobs:
.parcel-cache
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ env.NODE_VERSION }}-parcel
- run: |
yarn
. script/bootstrap
yarn build
- name: Build Artifacts
uses: actions/upload-artifact@v3
@ -97,7 +98,7 @@ jobs:
path: |
.yarn
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ env.NODE_VERSION }}
- run: yarn
- run: . script/bootstrap
- name: Build Artifacts
uses: actions/download-artifact@v3
with:
@ -142,7 +143,7 @@ jobs:
path: |
.yarn
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ env.NODE_VERSION }}
- run: yarn
- run: . script/bootstrap
- name: Build Artifacts
uses: actions/download-artifact@v3
with:

2
.nvmrc
View file

@ -1 +1 @@
16.18.1
lts/hydrogen

Binary file not shown.

View file

@ -1,2 +1 @@
nodeLinker: node-modules
yarnPath: .yarn/releases/yarn-3.3.1.cjs

View file

@ -16,8 +16,8 @@
"build:bundlesize": "parcel build src/index.html --reporter @parcel/reporter-bundle-analyzer"
},
"devDependencies": {
"@parcel/reporter-bundle-analyzer": "2.8.3",
"@parcel/validator-typescript": "2.8.3",
"@parcel/reporter-bundle-analyzer": "^2.9.3",
"@parcel/validator-typescript": "^2.9.3",
"@tophat/eslint-config": "3.3.0",
"@tophat/eslint-import-resolver-require": "0.1.3",
"@typescript-eslint/eslint-plugin": "5.48.2",
@ -34,8 +34,8 @@
"eslint-plugin-react": "7.31.10",
"eslint-plugin-react-hooks": "4.6.0",
"jest": "29.3.1",
"netlify-cli": "^12.9.1",
"parcel": "^2.8.3",
"netlify-cli": "^15.7.0",
"parcel": "^2.9.3",
"prettier": "2.7.1",
"typescript": "^4.9.4"
},

View file

@ -1,5 +1,7 @@
#!/bin/bash
nvm install
if [[ $CI != 1 ]]; then
nvm use
fi
yarn dlx @yarnpkg/sdks vim
corepack enable && yarn

5454
yarn.lock

File diff suppressed because it is too large Load diff