File tree Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 1
- # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2
- # For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3
-
4
1
name : Node.js Package
5
2
3
+ # on:
4
+ # push:
5
+ # branches: [ master ]
6
+ # pull_request:
7
+ # branches: [ master ]
6
8
on :
7
9
release :
8
10
types : [created]
9
11
10
12
jobs :
11
- build-publish :
13
+ build :
12
14
runs-on : ubuntu-latest
13
15
steps :
14
16
- uses : actions/checkout@v2
17
19
node-version : 12
18
20
- run : yarn
19
21
- run : yarn build
22
+
23
+ publish-npm :
24
+ needs : build
25
+ runs-on : ubuntu-latest
26
+ steps :
27
+ - uses : actions/checkout@v2
28
+ - uses : actions/setup-node@v1
29
+ with :
30
+ node-version : 12
31
+ registry-url : https://registry.npmjs.org/
20
32
- run : npm publish
21
33
env :
22
34
NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-user-guide" ,
3
- "version" : " 1.1.3 " ,
3
+ "version" : " 1.1.4 " ,
4
4
"description" : " React User Guide" ,
5
5
"author" : " sandeshshrestha" ,
6
6
"license" : " MIT" ,
You can’t perform that action at this time.
0 commit comments