@@ -15,13 +15,18 @@ jobs:
15
15
- name : Checkout
16
16
uses : actions/checkout@v4
17
17
18
+
19
+ - name : Setup PNPM
20
+ uses : pnpm/action-setup@v4
21
+ with :
22
+ run_install : false
23
+
18
24
- uses : actions/setup-node@v4
19
25
with :
20
26
node-version-file : " .node-version"
21
- cache : npm
22
-
23
- - run : npm ci
27
+ cache : ' pnpm'
24
28
29
+ - run : pnpm install --frozen-lockfile
25
30
- name : Fetch latest SmoothCSV version
26
31
id : fetch-version
27
32
run : |
@@ -35,10 +40,10 @@ jobs:
35
40
echo "Latest SmoothCSV version: $VERSION"
36
41
37
42
- name : Lint
38
- run : npm run lint
43
+ run : pnpm lint
39
44
40
45
- name : Test
41
- run : npm run test
46
+ run : pnpm test
42
47
43
48
- name : Extract branch name
44
49
shell : bash
@@ -49,19 +54,19 @@ jobs:
49
54
run : echo "PUBLIC_SMOOTHCSV_VERSION=${{ steps.fetch-version.outputs.VERSION }}"
50
55
51
56
- name : Build for production
52
- run : npm run build
57
+ run : pnpm build
53
58
if : steps.extract_branch.outputs.branch == 'main'
54
59
env :
55
60
PUBLIC_SMOOTHCSV_VERSION : ${{ steps.fetch-version.outputs.VERSION }}
56
61
57
62
- 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/"
59
64
if : steps.extract_branch.outputs.branch != 'main'
60
65
env :
61
66
PUBLIC_SMOOTHCSV_VERSION : ${{ steps.fetch-version.outputs.VERSION }}
62
67
63
68
- 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 }}
65
70
if : github.repository == 'kohii/smoothcsv-website'
66
71
env :
67
72
CLOUDFLARE_ACCOUNT_ID : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
0 commit comments