Skip to content

Commit

Permalink
improvement(ci): Replace to semantic-release.
Browse files Browse the repository at this point in the history
  • Loading branch information
locona committed Feb 7, 2020
1 parent 0e604f6 commit 1f34600
Show file tree
Hide file tree
Showing 6 changed files with 9,104 additions and 43 deletions.
29 changes: 14 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
name: release
name: Release
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
branches:
- master
jobs:
goreleaser:
runs-on: ubuntu-latest
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:
fetch-depth: 1
- name: Setup Go
uses: actions/setup-go@v1
with:
go-version: 1.13
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
with:
version: latest
args: release --rm-dist
node-version: 12
- name: Install dependencies
run: npm ci
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.envrc
.vscode
node_modules
livy
28 changes: 0 additions & 28 deletions .goreleaser.yml

This file was deleted.

58 changes: 58 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"branches": [{name: "release/v*"}],
"plugins": [
["@semantic-release/commit-analyzer", {
"preset": "conventionalcommits",
"releaseRules": [
{breaking: true, release: 'major'},
{revert: true, release: 'patch'},
{type: 'feat', release: 'minor'},
{type: 'fix', release: 'patch'},
{type: "improvement", release: "patch"},
{type: 'docs', release: 'patch'},
{type: 'perf', release: 'patch'},
{type: 'refactor', release: 'patch'},
],
"presetConfig": {
"types": [
{"type": "feat", "section": "New Features", "hidden": false},
{"type": "fix", "section": "Bug Fixes", "hidden": false},
{"type": "improvement", "section": "Improvement", "hidden": false},
{"type": "docs", "section": "Docs", "hidden": false},
{"type": "perf", "section": "Performance", "hidden": false},
{"type": "refactor", "section": "Refactor", "hidden": false}
]
}
}],
["@semantic-release/release-notes-generator", {
"preset": "conventionalcommits",
"releaseRules": [
{breaking: true, release: 'major'},
{revert: true, release: 'patch'},
{type: 'feat', release: 'minor'},
{type: 'fix', release: 'patch'},
{type: "improvement", release: "patch"},
{type: 'docs', release: 'patch'},
{type: 'perf', release: 'patch'},
{type: 'refactor', release: 'patch'},
],
"presetConfig": {
"types": [
{"type": "feat", "section": "New Features", "hidden": false},
{"type": "fix", "section": "Bug Fixes", "hidden": false},
{"type": "improvement", "section": "Improvement", "hidden": false},
{"type": "docs", "section": "Docs", "hidden": false},
{"type": "perf", "section": "Performance", "hidden": false},
{"type": "refactor", "section": "Refactor", "hidden": false}
]
}
}],
"@semantic-release/changelog",
"@semantic-release/github",
["@semantic-release/git", {
"message": "chore(release): ${nextRelease.version} [skip semantic-release]"
}]
]
}


Loading

0 comments on commit 1f34600

Please sign in to comment.