File tree Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -4,25 +4,24 @@ name: Deploy static content to Pages
44on :
55 # Runs on pushes targeting the default branch
66 push :
7- branches : [" main" ]
7+ branches : [' main' ]
88
99 # Allows you to run this workflow manually from the Actions tab
1010 workflow_dispatch :
1111
12- # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
12+ # Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
1313permissions :
1414 contents : read
1515 pages : write
1616 id-token : write
1717
18- # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19- # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
18+ # Allow one concurrent deployment
2019concurrency :
21- group : " pages"
22- cancel-in-progress : false
20+ group : ' pages'
21+ cancel-in-progress : true
2322
2423jobs :
25- # Single deploy job since we are just deploying
24+ # Single deploy job since we're just deploying
2625 deploy :
2726 environment :
2827 name : github-pages
@@ -34,18 +33,19 @@ jobs:
3433 - name : Set up Node
3534 uses : actions/setup-node@v4
3635 with :
37- node-version : 18
36+ node-version : lts/*
3837 cache : ' npm'
3938 - name : Install dependencies
40- run : npm install
39+ run : npm ci
4140 - name : Build
4241 run : npm run build
4342 - name : Setup Pages
44- uses : actions/configure-pages@v4
43+ uses : actions/configure-pages@v5
4544 - name : Upload artifact
4645 uses : actions/upload-pages-artifact@v3
4746 with :
47+ # Upload dist folder
4848 path : ' ./dist'
4949 - name : Deploy to GitHub Pages
5050 id : deployment
51- uses : actions/deploy-pages@v4
51+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import tsconfigPaths from 'vite-tsconfig-paths'
77
88export default defineConfig ( ( ) => {
99 return {
10+ base : '/' ,
1011 plugins : [
1112 tsconfigPaths ( ) ,
1213 bundlesize ( {
You can’t perform that action at this time.
0 commit comments