Skip to content

Commit

Permalink
build: first attempt at semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
robertrossmann committed Feb 19, 2024
1 parent c7440bc commit c052ea1
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Release

on:
workflow_dispatch:

jobs:
release:
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: lts
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14 changes: 14 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
'use strict'

module.exports = {
tagFormat: 'v${version}',
branches: [
{ name: 'master' },
],

plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
'@semantic-release/github',
],
}

0 comments on commit c052ea1

Please sign in to comment.