File tree 2 files changed +50
-6
lines changed
2 files changed +50
-6
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
2
3
3
on :
4
- push :
5
- branches :
6
- - main
7
4
pull_request :
8
5
9
6
permissions :
18
15
with :
19
16
fetch-depth : 0
20
17
21
- - uses : pnpm/action-setup@v4
18
+ - name : Checkout repository
19
+ uses : pnpm/action-setup@v4
22
20
with :
23
21
version : 9.12.1
24
22
@@ -27,13 +25,15 @@ jobs:
27
25
# Learn more at https://nx.dev/ci/reference/nx-cloud-cli#npx-nxcloud-startcirun
28
26
- run : pnpm dlx nx-cloud start-ci-run --distribute-on="3 linux-medium-js" --stop-agents-after="build"
29
27
28
+ - name : Install Node
30
29
# Cache node_modules
31
- - uses : actions/setup-node@v4
30
+ uses : actions/setup-node@v4
32
31
with :
33
32
node-version : 20
34
33
cache : ' pnpm'
35
34
36
- - run : pnpm install --frozen-lockfile
35
+ - name : Install dependencies
36
+ run : pnpm install --frozen-lockfile
37
37
- uses : nrwl/nx-set-shas@v4
38
38
39
39
# Prepend any command with "nx-cloud record --" to record its logs to Nx Cloud
Original file line number Diff line number Diff line change
1
+ name : Deploy
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ jobs :
9
+ main :
10
+ name : Deploy
11
+ runs-on : ubuntu-latest
12
+ permissions :
13
+ contents : write
14
+ id-token : write # needed for provenance data generation
15
+ timeout-minutes : 10
16
+ steps :
17
+ - name : Checkout repository
18
+ uses : actions/checkout@v4
19
+ with :
20
+ fetch-depth : 0
21
+
22
+ - name : Checkout repository
23
+ uses : pnpm/action-setup@v4
24
+ with :
25
+ version : 9.12.1
26
+
27
+ - name : Install Node
28
+ # Cache node_modules
29
+ uses : actions/setup-node@v4
30
+ with :
31
+ node-version : 20
32
+ cache : ' pnpm'
33
+
34
+ - name : Install dependencies
35
+ run : pnpm install --frozen-lockfile
36
+
37
+ - uses : nrwl/nx-set-shas@v4
38
+ - run : pnpm exec nx build devmx
39
+
40
+ - name : Deploy
41
+ uses : peaceiris/actions-gh-pages@v3
42
+ with :
43
+ github_token : ${{ secrets.GITHUB_TOKEN }}
44
+ publish_dir : ./dist/apps/devmx/browser
You can’t perform that action at this time.
0 commit comments