From a23aa61fc54cfe144e6de5f39599ce7e0bf9ae54 Mon Sep 17 00:00:00 2001 From: mefody Date: Sun, 13 Oct 2024 22:13:26 +0300 Subject: [PATCH] ci: Update GitHub workflows to use pnpm --- .github/workflows/lint-css.yml | 9 +++++++-- .github/workflows/lint-editorconfig.yml | 9 +++++++-- .github/workflows/lint-js.yml | 9 +++++++-- .github/workflows/weekly-links-post.yml | 9 +++++++-- 4 files changed, 28 insertions(+), 8 deletions(-) diff --git a/.github/workflows/lint-css.yml b/.github/workflows/lint-css.yml index 8023268..116a6c1 100644 --- a/.github/workflows/lint-css.yml +++ b/.github/workflows/lint-css.yml @@ -14,8 +14,13 @@ jobs: node-version: [20.x] steps: - uses: actions/checkout@v4 + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: 9 - uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - - run: npm ci - - run: npm run lint:css + cache: 'pnpm' + - run: pnpm install + - run: pnpm run lint:css diff --git a/.github/workflows/lint-editorconfig.yml b/.github/workflows/lint-editorconfig.yml index 1ddc15e..1d76b5e 100644 --- a/.github/workflows/lint-editorconfig.yml +++ b/.github/workflows/lint-editorconfig.yml @@ -14,8 +14,13 @@ jobs: node-version: [20.x] steps: - uses: actions/checkout@v4 + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: 9 - uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - - run: npm ci - - run: npm run lint:editorconfig + cache: 'pnpm' + - run: pnpm install + - run: pnpm run lint:editorconfig diff --git a/.github/workflows/lint-js.yml b/.github/workflows/lint-js.yml index 1c25ee0..f7e73ab 100644 --- a/.github/workflows/lint-js.yml +++ b/.github/workflows/lint-js.yml @@ -14,8 +14,13 @@ jobs: node-version: [20.x] steps: - uses: actions/checkout@v4 + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: 9 - uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - - run: npm ci - - run: npm run lint:js + cache: 'pnpm' + - run: pnpm install + - run: pnpm run lint:js diff --git a/.github/workflows/weekly-links-post.yml b/.github/workflows/weekly-links-post.yml index d8be4b8..68de71b 100644 --- a/.github/workflows/weekly-links-post.yml +++ b/.github/workflows/weekly-links-post.yml @@ -12,11 +12,16 @@ jobs: node-version: [20.x] steps: - uses: actions/checkout@v4 + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: 9 - uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - - run: npm ci - - run: npm run generate-weekly-links + cache: 'pnpm' + - run: pnpm install + - run: pnpm run generate-weekly-links env: RAINDROP_ACCESS_TOKEN: ${{ secrets.RAINDROP_ACCESS_TOKEN }} RAINDROP_COLLECTION_ID: ${{ secrets.RAINDROP_COLLECTION_ID }}