-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Automate release with semantic-release
- Loading branch information
1 parent
b3c9598
commit b7db0ff
Showing
5 changed files
with
2,536 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,7 +58,7 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
node: | ||
- 18 | ||
- 20 | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ on: | |
push: | ||
branches: | ||
- main | ||
- beta | ||
|
||
jobs: | ||
lint: | ||
|
@@ -60,7 +61,7 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
node: | ||
- 18 | ||
- 20 | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
|
@@ -72,3 +73,32 @@ jobs: | |
- run: yarn | ||
- run: yarn build:frame | ||
- run: yarn test | ||
|
||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
needs: | ||
- lint | ||
- build | ||
- coverage | ||
- test | ||
permissions: | ||
contents: write | ||
issues: write | ||
pull-requests: write | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
submodules: true | ||
- uses: actions/[email protected] | ||
with: | ||
cache: yarn | ||
check-latest: true | ||
node-version: 22 | ||
- run: yarn | ||
# TODO: Possibly download as artifact | ||
- run: yarn build | ||
- env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
run: yarn semantic-release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
plugins: | ||
- "@semantic-release/commit-analyzer" | ||
- "@semantic-release/release-notes-generator" | ||
- "@semantic-release/npm" | ||
- - "@semantic-release/github" | ||
- successCommentCondition: <% return issue.user.type !== 'Bot'; %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.