Skip to content
Merged
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
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Release
run-name: Release ${{ inputs.version_bump }} to npm latest
run-name: Stable release to npm latest

on:
workflow_dispatch:
Expand All @@ -25,7 +25,7 @@ on:
stable_version:
description: Manual stable version, used only when version_bump is manual.
required: false
default: ''
default: 0.0.1

permissions:
contents: write
Expand Down Expand Up @@ -133,7 +133,7 @@ NODE
} >> "$GITHUB_STEP_SUMMARY"

verify:
name: 2. Verify Release ${{ needs.guard.outputs.stable_version }}
name: 2. Verify release
needs: guard
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -204,7 +204,7 @@ NODE
} >> "$GITHUB_STEP_SUMMARY"

publish:
name: 3. Publish Release ${{ needs.guard.outputs.stable_version }} to npm latest
name: 3. Publish npm latest
needs: [guard, verify]
runs-on: ubuntu-latest
outputs:
Expand Down Expand Up @@ -257,7 +257,7 @@ NODE
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

github-release:
name: 4. Create GitHub Release ${{ needs.guard.outputs.stable_version }}
name: 4. Create GitHub release
needs: [guard, publish]
runs-on: ubuntu-latest
steps:
Expand Down
4 changes: 3 additions & 1 deletion docs-site/docs/project/release-channels.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,7 @@ For the first stable release, use:
```txt
confirm_stable_release=publish-stable
version_bump=patch
stable_version=
stable_version=0.0.1
```

The `stable_version` field can keep its default value when `version_bump` is `patch`, `minor`, or `major`; it is ignored unless the strategy is `manual`.
Loading