Skip to content

Commit

Permalink
chore: adding semver release
Browse files Browse the repository at this point in the history
  • Loading branch information
remy committed Oct 17, 2021
1 parent 58fc474 commit 5d3fa34
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 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-18.04
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 16
- name: Install dependencies
run: npm ci
- name: Test
run: npm run test
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"scripts": {
"test": "tap test/**/*.test.js -R spec",
"cover": "tap test/*.test.js --cov --coverage-report=lcov",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
"semantic-release": "semantic-release"
},
"prettier": {
"trailingComma": "none",
Expand All @@ -25,9 +25,10 @@
"author": "Remy Sharp",
"license": "MIT",
"devDependencies": {
"semantic-release": "^4.3.5",
"semantic-release": "^18.0.0",
"tap": "^5.7.1",
"tap-only": "0.0.5"
},
"dependencies": {}
"dependencies": {},
"version": "0.0.0-development"
}

0 comments on commit 5d3fa34

Please sign in to comment.