File tree Expand file tree Collapse file tree 3 files changed +65
-3
lines changed Expand file tree Collapse file tree 3 files changed +65
-3
lines changed Original file line number Diff line number Diff line change 66 "image" : " mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm" ,
77
88 // Features to add to the dev container. More info: https://containers.dev/features.
9- // "features": {},
9+ "features" : {
10+ // Needed for Github Local Actions extension
11+ "ghcr.io/devcontainers-extra/features/act:1" : { },
12+ "ghcr.io/devcontainers/features/docker-in-docker:2" : { }
13+ },
1014
1115 // Use 'forwardPorts' to make a list of ports inside the container available locally.
1216 // "forwardPorts": [],
2630 " esbenp.prettier-vscode" ,
2731 " dbaeumer.vscode-eslint" ,
2832 " Angular.ng-template" ,
29- " vitest.explorer"
33+ " vitest.explorer" ,
34+ " SanjulaGanepola.github-local-actions" ,
35+ " GitHub.vscode-github-actions"
3036 ],
3137 "settings" : {
3238 "editor.defaultFormatter" : " esbenp.prettier-vscode" ,
Original file line number Diff line number Diff line change 1+ name : Github Pages Deploy
2+ on :
3+ push :
4+ branches :
5+ - main
6+ permissions :
7+ contents : write
8+ pages : write
9+ id-token : write
10+ jobs :
11+ build-and-deploy :
12+ concurrency : ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Checkout 🛎️
16+ uses : actions/checkout@v3
17+
18+ # Step 2: Set up Node.js
19+ - name : Setup Node.js
20+ uses : actions/setup-node@v3
21+ with :
22+ node-version : ' 22'
23+
24+ - name : Cache node modules
25+ id : cache-npm
26+ uses : actions/cache@v3
27+ env :
28+ cache-name : cache-node-modules
29+ with :
30+ # npm cache files are stored in `~/.npm` on Linux/macOS
31+ path : ~/.npm
32+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
33+ restore-keys : |
34+ ${{ runner.os }}-build-${{ env.cache-name }}-
35+ ${{ runner.os }}-build-
36+ ${{ runner.os }}-
37+
38+ - if : ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
39+ name : List the state of node modules
40+ continue-on-error : true
41+ run : npm list
42+
43+ - name : Install and Build 🔧
44+ run : |
45+ npm ci
46+ npx nx run filesystem:build-storybook --configuration=ci
47+
48+ - name : Upload artifact
49+ uses : actions/upload-pages-artifact@v3
50+ with :
51+ path : ./dist/storybook/filesystem
52+
53+ - name : Deploy to GitHub Pages
54+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 44 " esbenp.prettier-vscode" ,
55 " dbaeumer.vscode-eslint" ,
66 " angular.ng-template" ,
7- " vitest.explorer"
7+ " vitest.explorer" ,
8+ " sanjulaganepola.github-local-actions" ,
9+ " github.vscode-github-actions"
810 ]
911}
You can’t perform that action at this time.
0 commit comments