File tree Expand file tree Collapse file tree 2 files changed +59
-1
lines changed
Expand file tree Collapse file tree 2 files changed +59
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Build and Publish Workflow
2+
3+ on :
4+ push :
5+ branches : [ master ]
6+ paths-ignore :
7+ - ' .github/**'
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+ name : Npm install and npm build
13+
14+ steps :
15+ - uses : actions/checkout@v2
16+
17+ - name : Setup Node with Github Registry
18+ uses : actions/setup-node@v1
19+ with :
20+ node-version : ' 20'
21+ registry-url : https://npm.pkg.github.com/celonis
22+ scope : ' @celonis'
23+
24+ - name : Yarn Install
25+ run : yarn install
26+
27+ - name : Yarn Build
28+ run : yarn build
29+
30+ - name : Yarn Test
31+ run : yarn test
32+
33+ - name : Move files to build
34+ run : |
35+ cp README.md dist/README.md
36+ cp LICENSE dist/LICENSE
37+
38+ - name : Publish to Github Registry
39+ env :
40+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
41+ run : cd dist/ && npm publish
42+
43+ - name : Setup publish to Npm Registry
44+ uses : actions/setup-node@v1
45+ with :
46+ node-version : ' 16'
47+ registry-url : https://registry.npmjs.org/
48+ scope : ' @celonis'
49+
50+ - name : Publish to Npm Registry
51+ env :
52+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
53+ run : cd dist/ && npm publish --access public
54+
55+ - uses : actions/checkout@master
56+ name : Checkout Master
57+ with :
58+ fetch-depth : ' 0'
Original file line number Diff line number Diff line change 11{
22 "name" : " @celonis/content-cli" ,
3- "version" : " 0.13.5 " ,
3+ "version" : " 1.0.0 " ,
44 "description" : " CLI Tool to help manage content in Celonis EMS" ,
55 "main" : " content-cli.js" ,
66 "bin" : {
You can’t perform that action at this time.
0 commit comments