Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Commit

Permalink
ci: add semantic release files (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
wallies authored Jun 22, 2021
1 parent 189bd11 commit 9f90574
Show file tree
Hide file tree
Showing 5 changed files with 87 additions and 2 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/bump.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Semantic Bump

on:
push:
branches:
- master

jobs:
bump:
if: github.repository_owner == 'Kapiche'
runs-on: ubuntu-latest
name: Semantic Release
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.GH_TOKEN }}

- name: Semantic Release
uses: cycjimmy/semantic-release-action@v2.5.4
id: semantic
with:
extra_plugins: |
@semantic-release/commit-analyzer
@semantic-release/release-notes-generator
@semantic-release/git
@semantic-release/changelog
@semantic-release/github
@semantic-release/exec
@semantic-release/npm
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GIT_COMMITTER_EMAIL: bot@kapiche.com
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Echo new release
if: steps.semantic.outputs.new_release_published == 'true'
run: |
echo ${{ steps.semantic.outputs.new_release_version }}
echo ${{ steps.semantic.outputs.new_release_major_version }}
echo ${{ steps.semantic.outputs.new_release_minor_version }}
echo ${{ steps.semantic.outputs.new_release_patch_version }}
42 changes: 42 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"branches": ["master"],
"dryRun": false,
"plugins": [
["@semantic-release/commit-analyzer", {
"preset": "angular",
"releaseRules": [
{"type": "feat", "release": "minor"},
{"type": "style", "release": false}
],
"parserOpts": {
"noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES"]
}
}],
"@semantic-release/release-notes-generator",
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md",
"changelogTitle": "# Vue Segment Analytics Changelog"
}
],
[
"@semantic-release/npm",
{
"npmPublish": true
}
],
[
"@semantic-release/git",
{
"assets": [
"docs/CHANGELOG.md",
"package.json",
"package-lock.json"
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
"@semantic-release/github"
]
}
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Vue Segment Analytics Changelog
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
@@ -1,6 +1,6 @@
{
"name": "vue-segment-analytics",
"version": "0.4.1",
"version": "0.4.2",
"description": "Vue plugin for segment analytics.js",
"main": "dist/vue-segment-analytics.js",
"scripts": {
Expand Down

0 comments on commit 9f90574

Please sign in to comment.