-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add github actions files for release and lint/build checks
- Loading branch information
1 parent
4540107
commit 757425e
Showing
4 changed files
with
80 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Build | ||
|
||
on: push | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: glzr-io/actions/setup-pnpm@main | ||
with: | ||
checkout: true | ||
node-version: 20 | ||
|
||
- run: pnpm build |
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,14 @@ | ||
name: Lint check | ||
|
||
on: push | ||
|
||
jobs: | ||
lint-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: glzr-io/actions/setup-pnpm@main | ||
with: | ||
checkout: true | ||
node-version: 20 | ||
|
||
- run: pnpm lint |
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,13 @@ | ||
name: PR title check | ||
|
||
on: | ||
pull_request: | ||
types: [opened, edited, synchronize, reopened] | ||
|
||
jobs: | ||
pr-title-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: glzr-io/actions/semantic-prs@main | ||
with: | ||
gh-token: ${{ secrets.GITHUB_TOKEN }} |
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,39 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
draft-release: | ||
type: boolean | ||
default: false | ||
description: Whether to publish the release as a draft. | ||
|
||
permissions: | ||
contents: write | ||
issues: write | ||
pull-requests: write | ||
id-token: write | ||
|
||
concurrency: | ||
group: release | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: glzr-io/actions/setup-pnpm@main | ||
with: | ||
checkout: true | ||
node-version: 20 | ||
fetch-depth: 0 | ||
|
||
- run: pnpm build | ||
|
||
- uses: glzr-io/actions/semantic-release@main | ||
with: | ||
gh-publish: true | ||
gh-draft-release: ${{ inputs.draft-release }} | ||
gh-token: ${{ github.token }} | ||
npm-publish: true | ||
npm-token: ${{ secrets.NPM_TOKEN }} | ||
npm-package-manager: pnpm |