Skip to content

Commit 933fc3e

Browse files
committed
chore: update pnpm from 9 to 10
1 parent a58b844 commit 933fc3e

File tree

4 files changed

+25
-9185
lines changed

4 files changed

+25
-9185
lines changed

.github/workflows/pages-deployment.yaml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,18 @@ jobs:
1515
- name: Checkout
1616
uses: actions/checkout@v4
1717

18+
19+
- name: Setup PNPM
20+
uses: pnpm/action-setup@v4
21+
with:
22+
run_install: false
23+
1824
- uses: actions/setup-node@v4
1925
with:
2026
node-version-file: ".node-version"
21-
cache: npm
22-
23-
- run: npm ci
27+
cache: 'pnpm'
2428

29+
- run: pnpm install --frozen-lockfile
2530
- name: Fetch latest SmoothCSV version
2631
id: fetch-version
2732
run: |
@@ -35,10 +40,10 @@ jobs:
3540
echo "Latest SmoothCSV version: $VERSION"
3641
3742
- name: Lint
38-
run: npm run lint
43+
run: pnpm lint
3944

4045
- name: Test
41-
run: npm run test
46+
run: pnpm test
4247

4348
- name: Extract branch name
4449
shell: bash
@@ -49,19 +54,19 @@ jobs:
4954
run: echo "PUBLIC_SMOOTHCSV_VERSION=${{ steps.fetch-version.outputs.VERSION }}"
5055

5156
- name: Build for production
52-
run: npm run build
57+
run: pnpm build
5358
if: steps.extract_branch.outputs.branch == 'main'
5459
env:
5560
PUBLIC_SMOOTHCSV_VERSION: ${{ steps.fetch-version.outputs.VERSION }}
5661

5762
- name: Build for non-production
58-
run: npm run build -- --site="https://${{ steps.extract_branch.outputs.branch }}.smoothcsv-website.pages.dev/"
63+
run: pnpm build -- --site="https://${{ steps.extract_branch.outputs.branch }}.smoothcsv-website.pages.dev/"
5964
if: steps.extract_branch.outputs.branch != 'main'
6065
env:
6166
PUBLIC_SMOOTHCSV_VERSION: ${{ steps.fetch-version.outputs.VERSION }}
6267

6368
- name: Deploy
64-
run: npm run wrangler -- pages deploy dist --project-name smoothcsv-website --branch "${{ steps.extract_branch.outputs.branch }}" --commit-hash ${{ github.sha }}
69+
run: pnpm wrangler -- pages deploy dist --project-name smoothcsv-website --branch "${{ steps.extract_branch.outputs.branch }}" --commit-hash ${{ github.sha }}
6570
if: github.repository == 'kohii/smoothcsv-website'
6671
env:
6772
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}

0 commit comments

Comments
 (0)