Skip to content

Commit e88d2a1

Browse files
committed
chore(release): prepare 0.1.0-rc.1 pre-release
- prerelease-aware release workflow: pre-release tags (vX.Y.Z-*) publish to the npm 'next' dist-tag and are flagged as GitHub pre-releases; stable tags keep publishing to 'latest' as before - bump version to 0.1.0-rc.1
1 parent 8c05b0b commit e88d2a1

5 files changed

Lines changed: 28 additions & 9 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,31 @@ jobs:
3939
env:
4040
CURSOR_API_KEY: ${{ secrets.CURSOR_API_KEY }}
4141

42+
# A tag with a pre-release suffix (e.g. v0.1.0-rc.1) publishes to the
43+
# `next` dist-tag and is flagged as a GitHub pre-release, so `npm install`
44+
# and the repo's "Latest" release keep pointing at the last stable.
45+
- name: Classify release from tag
46+
id: version
47+
run: |
48+
VERSION="${GITHUB_REF_NAME#v}"
49+
echo "VERSION=$VERSION" >> "$GITHUB_OUTPUT"
50+
if [[ "$VERSION" == *-* ]]; then
51+
echo "NPM_TAG=next" >> "$GITHUB_OUTPUT"
52+
echo "PRERELEASE=true" >> "$GITHUB_OUTPUT"
53+
else
54+
echo "NPM_TAG=latest" >> "$GITHUB_OUTPUT"
55+
echo "PRERELEASE=false" >> "$GITHUB_OUTPUT"
56+
fi
57+
4258
- name: Publish to npm
43-
run: npm publish --provenance --access public
59+
run: npm publish --provenance --access public --tag "${{ steps.version.outputs.NPM_TAG }}"
4460
env:
4561
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4662

47-
- name: Extract version from tag
48-
id: version
49-
run: echo "VERSION=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"
50-
5163
- name: Create GitHub Release
5264
uses: softprops/action-gh-release@v3
5365
with:
5466
name: "v${{ steps.version.outputs.VERSION }}"
5567
generate_release_notes: true
56-
make_latest: true
68+
prerelease: ${{ steps.version.outputs.PRERELEASE }}
69+
make_latest: ${{ steps.version.outputs.PRERELEASE == 'false' }}

‎.npmrc‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
registry=https://registry.npmjs.org/

‎CHANGELOG.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [Unreleased]
6+
7+
- `0.1.0-rc.1` — first pre-release of the 0.1.0 surface below, published to the
8+
npm `next` dist-tag for validation ahead of the stable `0.1.0`.
9+
510
## [0.1.0] — 2026-06-10
611

712
Initial public release. A complete opencode integration for Cursor built on the

‎package-lock.json‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stablekernel/opencode-cursor",
3-
"version": "0.1.0",
3+
"version": "0.1.0-rc.1",
44
"description": "opencode provider plugin backed by the official Cursor SDK (@cursor/sdk) — adds a Cursor provider and lists its models",
55
"type": "module",
66
"license": "MIT",

0 commit comments

Comments
 (0)