File tree Expand file tree Collapse file tree 2 files changed +34
-43
lines changed Expand file tree Collapse file tree 2 files changed +34
-43
lines changed Original file line number Diff line number Diff line change 1
1
name : Node CI
2
2
3
- on : [push]
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - main
7
+ push :
8
+ branches :
9
+ - main
4
10
5
11
jobs :
6
12
build :
7
-
8
13
runs-on : ubuntu-latest
9
-
10
14
steps :
11
15
- uses : actions/checkout@v1
12
16
- name : Use Node.js 18
21
25
yarn test
22
26
env :
23
27
CI : true
28
+
29
+
30
+ publish-npm :
31
+ needs : build
32
+ if : github.ref == 'refs/heads/main'
33
+ permissions :
34
+ contents : write
35
+ issues : write
36
+ id-token : write
37
+ pull-requests : write
38
+ runs-on : ubuntu-latest
39
+ steps :
40
+ - uses : actions/checkout@v1
41
+ - uses : actions/setup-node@v3
42
+ with :
43
+ node-version : 20
44
+ cache : yarn
45
+ - run : yarn install --immutable
46
+ - run : yarn build
47
+
48
+ - name : Release
49
+ env :
50
+ GITHUB_TOKEN : $\{{ secrets.GITHUB_TOKEN }}
51
+ NPM_TOKEN : $\{{ secrets.SESAMECARE_OSS_NPM_TOKEN }}
52
+ run : |
53
+ yarn dlx semantic-release
54
+
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments