Skip to content

Commit

Permalink
ci: added semantic releaser
Browse files Browse the repository at this point in the history
Signed-off-by: David Calvert <[email protected]>
  • Loading branch information
dotdc committed Apr 25, 2024
1 parent 23e46ed commit b7d3553
Show file tree
Hide file tree
Showing 2 changed files with 44 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

# Doc: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions

on:
push:
branches:
- master
paths:
- 'dashboards/**/*.json'
# Allow this workflow to be manually triggered
workflow_dispatch:

jobs:
release:
runs-on: ubuntu-latest
steps:
# Doc: https://github.com/marketplace/actions/checkout
- name: Checkout ${{ github.repository }}
uses: actions/checkout@v4
with:
fetch-depth: 0

# Doc: https://github.com/marketplace/actions/setup-node-js-environment
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20

# Doc: https://github.com/semantic-release/semantic-release/blob/master/docs/recipes/ci-configurations/github-actions.md
- name: Semantic Release
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
run: npx semantic-release
10 changes: 10 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"branches": [
"master"
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github"
]
}

0 comments on commit b7d3553

Please sign in to comment.