Skip to content

Commit

Permalink
Automated semantic of danfojs release to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
risenW committed Jan 24, 2021
1 parent 603fb8f commit f7e0d4a
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 29 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/npm-publish.yml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/test-and-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Test and Release
on: [push]

jobs:
test-and-release:
name: Run tests and release
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run semantic-release
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"coverage": "nyc report --reporter=text-lcov | coveralls && nyc report --reporter=lcov",
"patch": "npm version patch"
},
"publishConfig": { "access": "public", "branches": ["master"] },
"repository": {
"type": "git",
"url": "git+https://github.com/opensource9ja/danfojs.git"
Expand Down

0 comments on commit f7e0d4a

Please sign in to comment.