Skip to content

Commit

Permalink
ci: Update GitHub workflows to use pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
MeFoDy committed Oct 13, 2024
1 parent 7e44c5a commit a23aa61
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 8 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/lint-css.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 7 additions & 2 deletions .github/workflows/lint-editorconfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 7 additions & 2 deletions .github/workflows/lint-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 7 additions & 2 deletions .github/workflows/weekly-links-post.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit a23aa61

Please sign in to comment.