Skip to content

Commit 35fddcf

Browse files
author
Phillip Lorenzo
authored
Merge pull request #261 from XYOracleNetwork/develop
Develop - new actions and release to package workflow
2 parents d982405 + 5141077 commit 35fddcf

File tree

3 files changed

+52
-1
lines changed

3 files changed

+52
-1
lines changed

.github/workflows/actions.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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

.github/workflows/release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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}}

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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",
@@ -11,6 +11,9 @@
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",

0 commit comments

Comments
 (0)