From 2b11a8c6a0667220b8df4f2e81ebe2f1a8fb922d Mon Sep 17 00:00:00 2001 From: metonym Date: Mon, 19 Aug 2024 17:08:46 -0700 Subject: [PATCH] ci: replace Yarn with npm --- .github/workflows/ci.yml | 14 +++++++------- .github/workflows/release.yml | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 279e778c..7ef09ca8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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') }} + path: ~/.npm + 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' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9ba276f9..00ee390e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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') }}