File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44name : Publish package
55
66on :
7- workflow_run :
8- workflows : ['Tests']
9- branches : [main]
10- types :
11- - completed
12- push :
13- branches :
14- - ' !*'
15- tags :
16- - ' v*'
7+ release :
8+ types : [created]
179
1810jobs :
1911 publish-npm :
20- if : github.event_name == 'push' && contains(github.ref, 'refs/tags/')
2112 runs-on : ubuntu-latest
2213 steps :
2314 - uses : actions/checkout@v2
2819 - run : yarn install
2920 - uses : JS-DevTools/npm-publish@v1
3021 with :
22+ tag : ${{ contains(github.ref_name,'beta') && 'beta' || 'latest' }}
3123 token : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 33
44name : Tests
55
6- on : [push, pull_request ]
6+ on : [push]
77
88jobs :
99 test :
Original file line number Diff line number Diff line change 11{
22 "name" : " @cabify/prom-react" ,
33 "description" : " Add Prometheus metrics to your React App" ,
4- "version" : " 0.1.3 " ,
4+ "version" : " 0.1.9-beta.2 " ,
55 "author" : " Cabify" ,
66 "license" : " Apache-2.0" ,
77 "main" : " ./dist/index.js" ,
2222 "publish:major" : " npm version major" ,
2323 "publish:minor" : " npm version minor" ,
2424 "publish:patch" : " npm version patch" ,
25- "publish:canary" : " npm version prerelease" ,
25+ "publish:canary" : " npm version prerelease --preid=beta " ,
2626 "test" : " jest" ,
2727 "test:ci" : " jest" ,
2828 "typecheck" : " tsc --project tsconfig.eslint.json"
You can’t perform that action at this time.
0 commit comments