Skip to content
This repository has been archived by the owner on Jul 27, 2020. It is now read-only.

Commit

Permalink
feat: attempt at semantic-release script (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongaar authored Nov 8, 2019
1 parent 3a2dcd8 commit baad47c
Show file tree
Hide file tree
Showing 2 changed files with 31 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@v1
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install dependencies
run: yarn
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
"description": "The eslint configurations for Exivity",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"semantic-release": "semantic-release"
},
"repository": {
"type": "git",
"url": "git+https://github.com/exivity/eslint-plugin.git"
"url": "https://github.com/exivity/eslint-plugin.git"
},
"keywords": [
"eslint",
Expand All @@ -19,6 +20,9 @@
"bugs": {
"url": "https://github.com/exivity/eslint-plugin/issues"
},
"devDependencies": {
"semantic-release": "^15.13.30"
},
"peerDependencies": {
"@typescript-eslint/eslint-plugin": ">= 2.3.0",
"@typescript-eslint/parser": ">= 1.11.0",
Expand Down

0 comments on commit baad47c

Please sign in to comment.