File tree 2 files changed +67
-0
lines changed
2 files changed +67
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : js (build)
2
+
3
+ on :
4
+ push :
5
+ paths :
6
+ - ' visual-js/**'
7
+ - .github/workflows/js-build.yml
8
+ pull_request :
9
+ paths :
10
+ - ' visual-js/**'
11
+ - .github/workflows/js-build.yml
12
+
13
+ defaults :
14
+ run :
15
+ working-directory : visual-js
16
+
17
+ jobs :
18
+ build :
19
+ runs-on : ubuntu-latest
20
+ steps :
21
+ - uses : actions/checkout@v4
22
+ - name : Setup Node 18
23
+ uses : actions/setup-node@v4
24
+ with :
25
+ node-version : 18.x
26
+ - name : Build with lerna
27
+ run : |
28
+ corepack enable
29
+ yarn install
30
+ npx lerna run lint
31
+ npx lerna run build
32
+ npx lerna run test
Original file line number Diff line number Diff line change
1
+ name : js (release)
2
+
3
+ on :
4
+ workflow_dispatch : {}
5
+
6
+ defaults :
7
+ run :
8
+ working-directory : visual-js
9
+
10
+ jobs :
11
+ release :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - uses : actions/checkout@v4
15
+ - name : Setup Node 18
16
+ uses : actions/setup-node@v4
17
+ with :
18
+ node-version : 18.x
19
+ - name : Setup Git
20
+ if : ${{ steps.prep.outputs.tag_name == '' }}
21
+ run : |
22
+ git config --global user.name "sauce-visual-bot"
23
+ git config --global user.email "[email protected] "
24
+ - name : Build
25
+ run : |
26
+ corepack enable
27
+ yarn install
28
+ npx lerna run build
29
+ - name : upgrade & publish version(s)
30
+ run : |
31
+ npx changeset version
32
+ npx changeset publish
33
+ - name : Push to git
34
+ run : |
35
+ git push --follow-tags
You can’t perform that action at this time.
0 commit comments