diff --git a/.github/workflows/build-zip.yml b/.github/workflows/build-zip.yml index b0c57b467..7a99be979 100644 --- a/.github/workflows/build-zip.yml +++ b/.github/workflows/build-zip.yml @@ -11,24 +11,17 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - - name: Setup Node.js - uses: actions/setup-node@v3 - with: - node-version-file: ".nvmrc" - - - uses: actions/cache@v3 - with: - path: node_modules - key: ${{ runner.OS }}-build-${{ hashFiles('**/pnpm-lock.yaml') }} - + - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 + - uses: actions/setup-node@v4 + with: + node-version-file: '.nvmrc' + cache: pnpm - - run: pnpm install --frozen-lockfile + - run: pnpm install --frozen-lockfile --prefer-offline - run: pnpm build - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: path: dist/* diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a7f03d3cf..b6bb8f8d9 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -12,14 +12,12 @@ jobs: steps: - uses: actions/checkout@v4 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version-file: ".nvmrc" - - uses: pnpm/action-setup@v4 + - uses: actions/setup-node@v4 + with: + node-version-file: '.nvmrc' + cache: pnpm - - run: pnpm install --frozen-lockfile + - run: pnpm install --frozen-lockfile --prefer-offline - run: pnpm lint