Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: CI

on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Install
run: yarn install
- name: Build
run: yarn build
- name: Test
run: yarn test
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release

on:
push:
tags:
- 'v*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 10.15.0
- run: |
yarn install
yarn build
yarn test
publish-gpr:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
registry-url: https://npm.pkg.github.com/
scope: '@XYOracleNetwork'
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@xyo-network/sdk-core-nodejs",
"name": "sdk-core-nodejs",
"version": "0.70.11",
"description": "A workspace to aggregated nodejs XYO projects",
"main": "dist/index.js",
Expand All @@ -11,6 +11,9 @@
"test": "yarn build && yarn lint && yarn licensecheck && export NODE_ENV=test && jest --no-cache --forceExit --coverage --verbose false --detectOpenHandles",
"start:tcp": "yarn build && node --nolazy -r ts-node/register examples/tcp-server/index.ts"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com/@XYOracleNetwork"
},
"devDependencies": {
"@types/elliptic": "^6.4.8",
"@types/jest": "^24.0.13",
Expand Down