Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
name: CI

# Same checks for PRs targeting main or beta (and for pushes to those branches).
on:
push:
branches:
- main
- beta
pull_request:
branches:
- main
- beta
Comment thread
manishdex25 marked this conversation as resolved.

jobs:
test:
name: Test
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [22.x, 24.x]
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
name: Release

# Publishes to npm on push to:
# - main → stable (@latest)
# - beta → prerelease (@beta), e.g. 1.2.0-beta.1
on:
push:
branches:
- main
- beta

jobs:
test:
Expand Down Expand Up @@ -39,6 +43,11 @@ jobs:
name: Release
needs: test
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
id-token: write

steps:
- name: Checkout code
Expand All @@ -52,6 +61,7 @@ jobs:
with:
node-version: 22.x
cache: 'npm'
registry-url: 'https://registry.npmjs.org/'

- name: Install dependencies
run: npm ci
Expand All @@ -64,3 +74,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
16 changes: 14 additions & 2 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"branches": ["main"],
"branches": [
"main",
{
"name": "beta",
"prerelease": "beta",
"channel": "beta"
}
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
Expand All @@ -9,7 +16,12 @@
"changelogFile": "CHANGELOG.md"
}
],
"@semantic-release/npm",
[
"@semantic-release/npm",
{
"npmPublish": true
}
],
[
"@semantic-release/git",
{
Expand Down
702 changes: 506 additions & 196 deletions README.md

Large diffs are not rendered by default.

Loading
Loading