Skip to content

Commit

Permalink
fix: auto release gha (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbeilin authored Dec 29, 2024
2 parents 5e0d1f8 + f874d7c commit 82081f6
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 5 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,18 @@ on:
- main

permissions:
contents: write
issues: write
contents: read
pull-requests: write

jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -34,4 +38,8 @@ jobs:
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
npx semantic-release
20 changes: 18 additions & 2 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
{
"branches": ["main"],
"branches": [
"+([0-9])?(.{+([0-9]),x}).x",
"main",
{
"name": "beta",
"prerelease": true
},
{
"name": "alpha",
"prerelease": true
}
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/github",
["@semantic-release/github", {
"successComment": false,
"failTitle": false,
"releasedLabels": false,
"addReleases": "bottom"
}],
["@semantic-release/git", {
"assets": ["package.json", "package-lock.json", "CHANGELOG.md"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
Expand Down

0 comments on commit 82081f6

Please sign in to comment.