Skip to content

Commit

Permalink
autotesting & publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
Wszerad authored and Wszerad committed Feb 2, 2020
1 parent 93dca04 commit a240c8b
Show file tree
Hide file tree
Showing 4 changed files with 1,163 additions and 9 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish

on:
release:
types: [created]

jobs:
publish-chain:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 13
registry-url: https://registry.npmjs.org/
scope: wssz
- name: Test
run: |
npm ci
npm test
- name: Build
run: npm run-script build
- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
21 changes: 21 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Test

on:
push:
branches:
- master

jobs:
test:
name: Run tests for each push
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup node.js
uses: actions/setup-node@v1
with:
node-version: 13
- name: Install and test
run: |
npm install
npm test
Loading

0 comments on commit a240c8b

Please sign in to comment.