Skip to content

Commit

Permalink
chore: update releaserc
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyfigaro committed Mar 30, 2024
1 parent b1eacf8 commit e18b3ba
Showing 1 changed file with 14 additions and 20 deletions.
34 changes: 14 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,28 @@ on:
push:
branches:
- "main"

permissions:
contents: write
pull-requests: read
- "next"

jobs:
release:
if: "!contains(github.event.head_commit.message, '[skip ci]')"

permissions:
contents: write

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false

- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
- uses: oven-sh/action-bun@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}

# - name: Changelog
# uses: scottbrenner/generate-changelog-action@master
# id: changelog
# with:
# package-dir: "./package.json"

- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}
- name: Run semantic release
run: |
bun run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit e18b3ba

Please sign in to comment.