Skip to content

Commit

Permalink
chore: Unity test and release github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
prantlf committed Dec 12, 2021
1 parent b8f2b13 commit 35b46a5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 36 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
name: Release

on:
push:
tags:
- 'v[0-9]+.*'
on: [push]

jobs:
create_release:
name: Create Release
release:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.get_version.outputs.version }}
steps:
- name: Checkout Sources
uses: actions/checkout@v2
Expand All @@ -31,6 +25,6 @@ jobs:
run: npm run coverage
- name: Publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
26 changes: 0 additions & 26 deletions .github/workflows/test.yml

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"lint:fix": "standard --fix --verbose bin/nettime lib/*.js tests/*.js",
"check": "tap tests/*.js",
"test": "npm run lint && npm run check",
"coverage": "tap --coverage-report=text-lcov | npx coverage"
"coverage": "tap --coverage-report=text-lcov | npx codecov"
},
"tap": {
"check-coverage": false
Expand Down

0 comments on commit 35b46a5

Please sign in to comment.