Skip to content

Commit b371f01

Browse files
authored
Update @sveltejs/adapter-cloudflare (#498)
1 parent 15e3a6a commit b371f01

6 files changed

Lines changed: 380 additions & 663 deletions

File tree

.github/workflows/build-preview.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,5 @@ jobs:
3030
uses: actions/upload-artifact@v4
3131
with:
3232
name: preview-build
33-
path: packages/layerchart/.svelte-kit/cloudflare
33+
path: packages/layerchart/.svelte-kit
34+
include-hidden-files: true
Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
11
name: Upload Preview Deployment
22

33
on:
4-
workflow_run:
5-
workflows: [Build Preview Deployment]
6-
types:
7-
- completed
4+
workflow_run:
5+
workflows: [Build Preview Deployment]
6+
types:
7+
- completed
88

99
permissions:
10-
actions: read
11-
deployments: write
12-
contents: read
13-
pull-requests: write
10+
actions: read
11+
deployments: write
12+
contents: read
13+
pull-requests: write
1414

1515
jobs:
16-
deploy-preview:
17-
runs-on: ubuntu-latest
18-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
19-
steps:
20-
- name: Download build artifact
21-
uses: actions/download-artifact@v4
22-
id: preview-build-artifact
23-
with:
24-
name: preview-build
25-
path: build
26-
github-token: ${{ secrets.GITHUB_TOKEN }}
27-
run-id: ${{ github.event.workflow_run.id }}
16+
deploy-preview:
17+
runs-on: ubuntu-latest
18+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
19+
steps:
20+
- name: Download build artifact
21+
uses: actions/download-artifact@v4
22+
id: preview-build-artifact
23+
with:
24+
name: preview-build
25+
path: build
26+
github-token: ${{ secrets.GITHUB_TOKEN }}
27+
run-id: ${{ github.event.workflow_run.id }}
2828

29-
- name: Deploy to Cloudflare Pages
30-
uses: AdrianGonz97/refined-cf-pages-action@v1
31-
with:
32-
apiToken: ${{ secrets.CF_API_TOKEN }}
33-
accountId: ${{ secrets.CF_ACCOUNT_ID }}
34-
githubToken: ${{ secrets.GITHUB_TOKEN }}
35-
projectName: layerchart
36-
deploymentName: Preview
37-
directory: ${{ steps.preview-build-artifact.outputs.download-path }}
29+
- name: Deploy to Cloudflare Pages
30+
uses: AdrianGonz97/refined-cf-pages-action@v1
31+
with:
32+
apiToken: ${{ secrets.CF_API_TOKEN }}
33+
accountId: ${{ secrets.CF_ACCOUNT_ID }}
34+
githubToken: ${{ secrets.GITHUB_TOKEN }}
35+
projectName: layerchart
36+
deploymentName: Preview
37+
directory: ${{ steps.preview-build-artifact.outputs.download-path }}/cloudflare

.github/workflows/deploy-prod.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Production Deployment
2+
23
on:
34
push:
45
branches:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@changesets/cli": "2.28.1",
2121
"@svitejs/changesets-changelog-github-compact": "^1.2.0",
2222
"rimraf": "6.0.1",
23-
"wrangler": "^3.110.0"
23+
"wrangler": "^4.14.4"
2424
},
2525
"packageManager": "pnpm@9.1.1"
2626
}

packages/layerchart/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"@changesets/cli": "^2.28.1",
2323
"@mdi/js": "^7.4.47",
2424
"@rollup/plugin-dsv": "^3.0.5",
25-
"@sveltejs/adapter-cloudflare": "^4.9.0",
26-
"@sveltejs/kit": "^2.17.3",
25+
"@sveltejs/adapter-cloudflare": "^7.0.3",
26+
"@sveltejs/kit": "^2.21.0",
2727
"@sveltejs/package": "^2.3.10",
2828
"@sveltejs/vite-plugin-svelte": "^5.0.3",
2929
"@svitejs/changesets-changelog-github-compact": "^1.2.0",

0 commit comments

Comments
 (0)