File tree Expand file tree Collapse file tree 6 files changed +87
-4
lines changed Expand file tree Collapse file tree 6 files changed +87
-4
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' react-dsv-import ' : patch
3
+ ---
4
+
5
+ Upgrade dependencies
Original file line number Diff line number Diff line change
1
+ name : Deploy
2
+
3
+ on :
4
+ workflow_call :
5
+ inputs :
6
+ ref :
7
+ required : true
8
+ type : string
9
+
10
+ permissions :
11
+ contents : read
12
+ pages : write
13
+ id-token : write
14
+
15
+ concurrency :
16
+ group : " pages"
17
+ cancel-in-progress : true
18
+
19
+ env :
20
+ BUILD_PATH : " ."
21
+
22
+ jobs :
23
+ build :
24
+ environment :
25
+ name : github-pages
26
+ url : ${{ steps.deployment.outputs.page_url }}
27
+ runs-on : ubuntu-latest
28
+ steps :
29
+ - name : Checkout
30
+ uses : actions/checkout@v4
31
+ with :
32
+ ref : ${{ inputs.ref }}
33
+
34
+ - name : Setup pnpm
35
+ uses : pnpm/action-setup@v4
36
+
37
+ - name : Setup Node
38
+ uses : actions/setup-node@v4
39
+ with :
40
+ node-version : 20
41
+ cache : " pnpm"
42
+
43
+ - name : Setup Pages
44
+ id : pages
45
+ uses : actions/configure-pages@v5
46
+
47
+ - name : Install dependencies
48
+ run : pnpm install --frozen-lockfile
49
+ working-directory : ${{ env.BUILD_PATH }}
50
+
51
+ - name : Build Storybook
52
+ run : |
53
+ pnpm nx build-storybook react-dsv-import
54
+ working-directory : ${{ env.BUILD_PATH }}
55
+
56
+ - name : Upload artifact
57
+ uses : actions/upload-pages-artifact@v3
58
+ with :
59
+ path : ${{ env.BUILD_PATH }}/packages/react-dsv-import/storybook-static
60
+
61
+ deploy :
62
+ environment :
63
+ name : github-pages
64
+ url : ${{ steps.deployment.outputs.page_url }}
65
+ runs-on : ubuntu-latest
66
+ needs : build
67
+ steps :
68
+ - name : Deploy to GitHub Pages
69
+ id : deployment
70
+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 25
25
- name : Setup Node
26
26
uses : actions/setup-node@v4
27
27
with :
28
- node-version : 22
28
+ node-version : 20
29
29
registry-url : https://registry.npmjs.org
30
30
cache : pnpm
31
31
52
52
ref : ${{ needs.publish-packages.outputs.ref }}
53
53
secrets : inherit
54
54
if : ${{ needs.publish-packages.outputs.published }}
55
+
56
+ deploy-to-static-file-host :
57
+ name : Deploy to Static File Host
58
+ uses : ./.github/workflows/cd-deploy.yml
59
+ needs : publish-packages
60
+ with :
61
+ ref : ${{ needs.publish-packages.outputs.ref }}
62
+ if : ${{ needs.publish-packages.outputs.published }}
Original file line number Diff line number Diff line change 23
23
- name : Setup Node
24
24
uses : actions/setup-node@v4
25
25
with :
26
- node-version : 22
26
+ node-version : 20
27
27
registry-url : https://registry.npmjs.org
28
28
cache : pnpm
29
29
Original file line number Diff line number Diff line change 23
23
- name : Setup Node
24
24
uses : actions/setup-node@v4
25
25
with :
26
- node-version : 22
26
+ node-version : 20
27
27
registry-url : https://registry.npmjs.org
28
28
cache : pnpm
29
29
Original file line number Diff line number Diff line change 19
19
- name : Setup Node
20
20
uses : actions/setup-node@v4
21
21
with :
22
- node-version : 22
22
+ node-version : 20
23
23
registry-url : https://registry.npmjs.org
24
24
cache : pnpm
25
25
You can’t perform that action at this time.
0 commit comments