ci: replace Yarn with npm

This commit is contained in:
metonym 2024-08-19 17:08:46 -07:00
commit 2b11a8c6a0
2 changed files with 8 additions and 8 deletions

View file

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

View file

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