Skip to content

Commit

Permalink
feat: add semantic-release github action
Browse files Browse the repository at this point in the history
  • Loading branch information
barnslig committed Jun 30, 2021
1 parent a5bb568 commit f4b1ec1
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release

on:
push:
branches:
- "+([0-9])?(.{+([0-9]),x}).x"
- main
- next
- next-major
- beta
- alpha
- feature/semantic-release
pull_request:
branches: [main]

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@v1
with:
node-version: 14
- name: Install dependencies
run: npm install -g semantic-release@~17.4.4 @semantic-release/git@~9.0.0
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: semantic-release --dry-run
22 changes: 22 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"branches": [
"+([0-9])?(.{+([0-9]),x}).x",
"main",
"next",
"next-major",
{ "name": "beta", "prerelease": true },
{ "name": "alpha", "prerelease": true }
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/npm",
{
"pkgRoot": "app"
}
],
"@semantic-release/github",
"@semantic-release/git"
]
}

0 comments on commit f4b1ec1

Please sign in to comment.