File tree Expand file tree Collapse file tree 3 files changed +52
-1
lines changed Expand file tree Collapse file tree 3 files changed +52
-1
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on : [push]
4+
5+ jobs :
6+ build :
7+
8+ runs-on : ubuntu-latest
9+
10+ steps :
11+ - uses : actions/checkout@v1
12+ - name : Install
13+ run : yarn install
14+ - name : Build
15+ run : yarn build
16+ - name : Test
17+ run : yarn test
Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*'
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v1
13+ - uses : actions/setup-node@v1
14+ with :
15+ node-version : 10.15.0
16+ - run : |
17+ yarn install
18+ yarn build
19+ yarn test
20+ publish-gpr :
21+ needs : build
22+ runs-on : ubuntu-latest
23+ steps :
24+ - uses : actions/checkout@v1
25+ - uses : actions/setup-node@v1
26+ with :
27+ registry-url : https://npm.pkg.github.com/
28+ scope : ' @XYOracleNetwork'
29+ - run : npm publish
30+ env :
31+ NODE_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
Original file line number Diff line number Diff line change 11{
2- "name" : " @xyo-network/ sdk-core-nodejs" ,
2+ "name" : " sdk-core-nodejs" ,
33 "version" : " 0.70.11" ,
44 "description" : " A workspace to aggregated nodejs XYO projects" ,
55 "main" : " dist/index.js" ,
1111 "test" : " yarn build && yarn lint && yarn licensecheck && export NODE_ENV=test && jest --no-cache --forceExit --coverage --verbose false --detectOpenHandles" ,
1212 "start:tcp" : " yarn build && node --nolazy -r ts-node/register examples/tcp-server/index.ts"
1313 },
14+ "publishConfig" : {
15+ "registry" : " https://npm.pkg.github.com/@XYOracleNetwork"
16+ },
1417 "devDependencies" : {
1518 "@types/elliptic" : " ^6.4.8" ,
1619 "@types/jest" : " ^24.0.13" ,
You can’t perform that action at this time.
0 commit comments