Skip to content

Commit 7f38f47

Browse files
tylergibbs1claude
andcommitted
Merge CI and publish into single workflow, bump to v0.6.2
Push to main → typecheck, test, build → create release + publish to npm if version is new. Removes separate publish.yml. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c2dbc9a commit 7f38f47

3 files changed

Lines changed: 12 additions & 38 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ jobs:
1717
with:
1818
bun-version: latest
1919

20+
- uses: actions/setup-node@v4
21+
with:
22+
node-version: 22
23+
registry-url: https://registry.npmjs.org/
24+
2025
- run: bun install --frozen-lockfile
2126

2227
- name: Typecheck
@@ -28,9 +33,10 @@ jobs:
2833
- name: Build
2934
run: bun run build
3035

31-
- name: Create release if version is new
36+
- name: Release and publish if version is new
3237
env:
3338
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3440
run: |
3541
VERSION=$(node -p "require('./package.json').version")
3642
TAG="v$VERSION"
@@ -40,4 +46,8 @@ jobs:
4046
else
4147
echo "Creating release $TAG"
4248
gh release create "$TAG" --title "$TAG" --generate-notes
49+
50+
echo "Publishing stratus-sdk@$VERSION to npm"
51+
npm version "$VERSION" --no-git-tag-version
52+
npm publish --access public
4353
fi

.github/workflows/publish.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "stratus-sdk",
3-
"version": "0.6.1",
3+
"version": "0.6.2",
44
"type": "module",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",

0 commit comments

Comments
 (0)