Skip to content

Commit a66c805

Browse files
committed
ci: release
@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!
1 parent 48a126d commit a66c805

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/release.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: release
2+
"on":
3+
push:
4+
branches:
5+
- main
6+
7+
permissions:
8+
contents: write
9+
issues: write
10+
pull-requests: write
11+
12+
jobs:
13+
release:
14+
name: release
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v3
18+
- uses: actions/setup-node@v3
19+
with:
20+
cache: npm
21+
node-version: lts/*
22+
- run: npm ci
23+
- run: npm run build
24+
- uses: ./ # Uses the action in the root directory
25+
id: app-token
26+
with:
27+
app_id: ${{ vars.RELEASER_APP_ID }}
28+
private_key: ${{ secrets.RELEASER_APP_PRIVATE_KEY }}
29+
30+
- id: commit
31+
uses: stefanzweifel/git-auto-commit-action@v4
32+
with:
33+
commit_message: "build: update dist files"
34+
- run: npm i semantic-release-plugin-github-breaking-version-tag
35+
- run: npx semantic-release
36+
env:
37+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}

0 commit comments

Comments
 (0)