File tree Expand file tree Collapse file tree 3 files changed +4529
-137
lines changed Expand file tree Collapse file tree 3 files changed +4529
-137
lines changed Original file line number Diff line number Diff line change
1
+ name : Node CI
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - uses : actions/checkout@v1
14
+ - name : Use Node.js 12
15
+ uses : actions/setup-node@v1
16
+ with :
17
+ node-version : 12.x
18
+ - uses : actions/cache@v1
19
+ with :
20
+ path : ~/.cache/yarn
21
+ key : ${{ runner.os }}-yarn-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}
22
+ restore-keys : |
23
+ ${{ runner.os }}-yarn-
24
+ - name : update yarn to latest version
25
+ run : |
26
+ sudo apt update && sudo apt install yarn
27
+ - name : yarn install and publish
28
+ run : |
29
+ node --version
30
+ npm --version
31
+ yarn --version
32
+ yarn --frozen-lockfile
33
+ yarn semantic-release
34
+ env :
35
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 8
8
"url" : " https://github.com/rmrs/react-native-settings.git"
9
9
},
10
10
"scripts" : {
11
- "tag" : " git tag \" v$npm_package_version\" && git push --tags" ,
12
- "prepublishOnly" : " yarn run tag"
11
+ "semantic-release" : " semantic-release"
13
12
},
14
13
"keywords" : [
15
14
" react-native" ,
29
28
"@commitlint/cli" : " ^8.3.4" ,
30
29
"@commitlint/config-conventional" : " ^8.3.4" ,
31
30
"husky" : " ^4.0.6" ,
32
- "prettier" : " ^1.19.1"
31
+ "prettier" : " ^1.19.1" ,
32
+ "semantic-release" : " ^16.0.1"
33
33
},
34
34
"husky" : {
35
35
"hooks" : {
You can’t perform that action at this time.
0 commit comments