Skip to content

Commit d497a06

Browse files
committed
Update deploy config
1 parent 797967f commit d497a06

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ on:
77
jobs:
88
build_site:
99
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
1012
steps:
1113
- name: Checkout
12-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1315

1416
# If you're using pnpm, add this step then change the commands and cache key below to use `pnpm`
1517
# - name: Install pnpm
@@ -18,13 +20,13 @@ jobs:
1820
# version: 8
1921

2022
- name: Install Node.js
21-
uses: actions/setup-node@v3
23+
uses: actions/setup-node@v4
2224
with:
23-
node-version: 18
25+
node-version: 20
2426
cache: npm
2527

2628
- name: Install dependencies
27-
run: npm install
29+
run: npm ci
2830

2931
- name: build
3032
env:
@@ -54,4 +56,4 @@ jobs:
5456
steps:
5557
- name: Deploy
5658
id: deployment
57-
uses: actions/deploy-pages@v1
59+
uses: actions/deploy-pages@v4

svelte.config.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@ const config = {
88
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
99
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
1010
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
11-
adapter: adapter()
12-
13-
// paths: {
14-
// base: process.env.NODE_ENV === 'production' ? '/socketopp.github.io' : '',
15-
// base: dev ? '' : process.env.BASE_PATH
16-
// }
11+
adapter: adapter(),
12+
paths: {
13+
base: dev ? '' : process.env.BASE_PATH
14+
}
1715
},
1816
preprocess: vitePreprocess()
1917
};

0 commit comments

Comments
 (0)