build: replace Yarn with npm (#1993)

This commit is contained in:
Eric Liu 2024-08-20 07:00:23 -07:00 committed by GitHub
commit 96cfb4be44
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 16641 additions and 9108 deletions

View file

@ -9,17 +9,17 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
id: yarn-cache
id: npm-cache
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies, build, test, and lint the codebase
run: |
yarn
yarn build:lib
yarn test:types
yarn lint
npm install
npm run build:lib
npm run test:types
npm run lint
- name: Trigger deploy
if: github.ref == 'refs/heads/master'

View file

@ -17,7 +17,7 @@ jobs:
registry-url: "https://registry.npmjs.org"
- name: Build
run: |
npm install --force
npm install
npm run build:docs & npm run build:lib
- name: Publish package (stable)
if: ${{ ! contains(github.ref, '-next') }}