Skip to content

Commit

Permalink
ci: release
Browse files Browse the repository at this point in the history
@parkerbxyz I implemented the automated release as you suggested, using a dedicated GitHub App and the new branch rules which indeed seem to support excluding apps from the rules. Looking forward to see if this will work!
  • Loading branch information
gr2m committed Jun 5, 2023
1 parent 48a126d commit a66c805
Showing 1 changed file with 37 additions and 0 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

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

jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: npm
node-version: lts/*
- run: npm ci
- run: npm run build
- uses: ./ # Uses the action in the root directory
id: app-token
with:
app_id: ${{ vars.RELEASER_APP_ID }}
private_key: ${{ secrets.RELEASER_APP_PRIVATE_KEY }}

- id: commit
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "build: update dist files"
- run: npm i semantic-release-plugin-github-breaking-version-tag
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}

0 comments on commit a66c805

Please sign in to comment.