File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -27,16 +27,20 @@ jobs:
27
27
steps :
28
28
- name : Checkout
29
29
uses : actions/checkout@v4
30
+
31
+ - name : NodeJS Cache
32
+ uses : actions/cache@v4
33
+ with :
34
+ path : ~/.npm
35
+ key : ${{ runner.OS }}-npm-cache-${{ hashFiles('**/package-lock.json') }}
36
+ restore-keys : |
37
+ ${{ runner.OS }}-npm-cache-
38
+
30
39
- name : Install Deps
31
40
run : npm install
32
41
33
42
- name : Build
34
- run : npm run build --preset=cloudflare_pages
35
-
36
- - uses : actions/upload-artifact@v4
37
- with :
38
- name : ${{env.PROJECT_NAME}}-dist
39
- path : ./dist/
43
+ run : npm run build
40
44
41
45
- name : Deploy
42
46
uses : cloudflare/wrangler-action@v3
46
50
with :
47
51
apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
48
52
accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
49
- command : pages deploy ./.output --project-name "${{ env.PROJECT_NAME }}"
53
+ command : pages deploy ./dist --project-name "${{ env.PROJECT_NAME }}"
50
54
# secrets: |
51
55
# YOUR_SECRET
52
56
# YOUR_OTHER_SECRET
You can’t perform that action at this time.
0 commit comments