File tree 1 file changed +26
-1
lines changed
1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change 1
1
name : NPM Publish
2
2
3
- on : [push]
3
+ on : [push, pull_request ]
4
4
5
5
jobs :
6
+ automated_tests :
7
+ runs-on : ubuntu-latest
8
+ if : " !contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci') && github.ref !== main"
9
+ steps :
10
+ - uses : actions/checkout@v2
11
+
12
+ - name : Use Node.js 20.x
13
+ uses : actions/setup-node@v1
14
+ with :
15
+ node-version : 20.x
16
+
17
+ - name : Cache node modules
18
+ uses : actions/cache@v1
19
+ with :
20
+ path : node_modules
21
+ key : yarn-deps-${{ hashFiles('yarn.lock') }}
22
+ restore-keys : |
23
+ yarn-deps-${{ hashFiles('yarn.lock') }}
24
+
25
+ - name : Run tests
26
+ run : |
27
+ yarn install --frozen-lockfile
28
+ yarn test
29
+
6
30
release :
7
31
runs-on : ubuntu-latest
8
32
if : " !contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
17
41
- name : Prepare repository
18
42
run : |
19
43
git fetch --unshallow --tags
44
+
20
45
- name : Cache node modules
21
46
uses : actions/cache@v1
22
47
with :
You can’t perform that action at this time.
0 commit comments