Skip to content

Commit

Permalink
chore(ci): use semantic-release for auto publish and release
Browse files Browse the repository at this point in the history
  • Loading branch information
fent committed Feb 2, 2021
1 parent 629832c commit 0eb271c
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release
on:
push:
branches:
- master
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 14
- name: Install dependencies
run: npm ci
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"redirect",
"stream"
],
"version": "4.1.0",
"version": "0.0.0-development",
"repository": {
"type": "git",
"url": "git://github.com/fent/node-miniget.git"
Expand Down

0 comments on commit 0eb271c

Please sign in to comment.