Skip to content

Commit

Permalink
chore: auto-version tagging for app version
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeocodes committed Mar 12, 2024
1 parent 620a085 commit 2de7357
Show file tree
Hide file tree
Showing 6 changed files with 10,672 additions and 3,799 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release

on:
push:
branches:
- main
- "next/**"
- "rc/**"
- "beta/**"
- "alpha/**"
workflow_dispatch:

jobs:
release:
name: Release / Node ${{ matrix.node }}
strategy:
matrix:
node: ["20"]

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}

- run: |
npm ci
npm run build
- name: Create a release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34 changes: 34 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"branches": [
{ "name": "main" },
{ "name": "next", "channel": "next", "prerelease": true },
{ "name": "rc", "channel": "rc", "prerelease": true },
{ "name": "beta", "channel": "beta", "prerelease": true },
{ "name": "alpha", "channel": "alpha", "prerelease": true }
],
"tagFormat": "${version}",
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/npm",
{
"npmPublish": false
}
],
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md",
"changelogTitle": "Change Log"
}
],
[
"@semantic-release/git",
{
"assets": ["package.json", "CHANGELOG.md"]
}
],
"@semantic-release/github"
]
}
Loading

0 comments on commit 2de7357

Please sign in to comment.