File tree 2 files changed +23
-3
lines changed 2 files changed +23
-3
lines changed Original file line number Diff line number Diff line change 1
1
# On master pushes it runs the rule tests and if needed it publishes to NPM (new package.json version).
2
2
3
- name : Tests & Release
3
+ name : Master Workflow
4
4
on :
5
5
push :
6
6
branches : master
7
7
8
8
jobs :
9
- publish :
9
+ checks :
10
+ name : Checks
10
11
runs-on : ubuntu-latest
11
12
steps :
12
13
- name : Checkout code
29
30
- name : Rule tests
30
31
run : yarn test
31
32
33
+ release :
34
+ name : Release
35
+ needs : checks
36
+ runs-on : ubuntu-latest
37
+ steps :
38
+ - name : Checkout code
39
+ uses : actions/checkout@v4
40
+
41
+ - name : Setup node
42
+ uses : actions/setup-node@v3
43
+ with :
44
+ node-version : 20.x
45
+
46
+ - name : Install dependencies
47
+ run : yarn
48
+
49
+ - name : Build
50
+ run : yarn build
51
+
32
52
- name : Publish
33
53
uses : JS-DevTools/npm-publish@v3
34
54
with :
Original file line number Diff line number Diff line change 1
1
# Runs rule tests on PRs targeting the master.
2
2
3
- name : Tests
3
+ name : PR Workflow
4
4
on :
5
5
pull_request :
6
6
branches : master
You can’t perform that action at this time.
0 commit comments