-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
294b2af
commit 5ac2edc
Showing
6 changed files
with
7,079 additions
and
1,359 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,27 @@ | ||
name: Build | ||
on: | ||
pull_request: | ||
paths: | ||
- 'src/**' | ||
- 'tsconfig.json' | ||
- 'package.json' | ||
- 'package-lock.json' | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build_library: | ||
name: Library | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout ✅ | ||
uses: actions/checkout@v4 | ||
- name: Setup Node.js 🔧 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 'lts/*' | ||
- name: Install dependencies 🛠️ | ||
run: npm i | ||
- name: Build | ||
run: npm run 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,19 @@ | ||
name: Lint | ||
on: | ||
pull_request: | ||
|
||
jobs: | ||
release: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout ✅ | ||
uses: actions/checkout@v4 | ||
- name: Setup Node.js 🔧 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 'lts/*' | ||
- name: Install dependencies 🛠️ | ||
run: npm i | ||
- name: Lint TS 🧹 | ||
run: npm run lint:ci |
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,34 @@ | ||
name: Release | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- 'ci/semantic_release' | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write # to be able to publish a GitHub release | ||
issues: write # to be able to comment on released issues | ||
pull-requests: write # to be able to comment on released pull requests | ||
steps: | ||
- name: Checkout ✅ | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Setup Node.js 🔧 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 'lts/*' | ||
- name: Install dependencies 🛠️ | ||
run: npm ci --ignore-scripts | ||
- name: Build 📦 | ||
run: npm run build | ||
- name: Release 🚀 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
run: npx 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,43 @@ | ||
{ | ||
"release": { | ||
"branches": [ | ||
"main", | ||
"ci/semantic_release" | ||
] | ||
}, | ||
"branches": [ | ||
"main", | ||
"ci/semantic_release" | ||
], | ||
"tagFormat": "v${version}", | ||
"plugins": [ | ||
"@semantic-release/commit-analyzer", | ||
"@semantic-release/release-notes-generator", | ||
[ | ||
"@semantic-release/changelog", | ||
{ | ||
"changelogTitle": "# Changelog\n\nAll notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines." | ||
} | ||
], | ||
"@semantic-release/npm", | ||
[ | ||
"@semantic-release/git", | ||
{ | ||
"assets": [ | ||
"CHANGELOG.md", | ||
"package.json", | ||
"package-lock.json", | ||
"npm-shrinkwrap.json" | ||
], | ||
"message": "chore(release): publish version ${nextRelease.version}" | ||
} | ||
], | ||
[ | ||
"@semantic-release/github", | ||
{ | ||
"message": "Release <%= nextRelease.version %> - <%= new Date().toLocaleDateString('en-US', {year: 'numeric', month: 'short', day: 'numeric', hour: 'numeric', minute: 'numeric' }) %> [skip ci]\n\n<%= nextRelease.notes %>" | ||
} | ||
] | ||
], | ||
"dryRun": false | ||
} |
Oops, something went wrong.