@lightupai/polaris 0.0.6 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -57,23 +57,14 @@ jobs:
57
57
 
58
58
  - run: bun install
59
59
 
60
- - name: Auto-bump patch version
61
- run: |
62
- CURRENT=$(node -p "require('./package.json').version")
63
- npm version patch --no-git-tag-version
64
- NEW=$(node -p "require('./package.json').version")
65
- echo "VERSION=$NEW" >> $GITHUB_ENV
66
- echo "Bumped $CURRENT → $NEW"
67
-
68
- - name: Publish to npm
60
+ - name: Bump version from npm registry and publish
69
61
  run: |
70
62
  echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
63
+ PUBLISHED=$(npm view @lightupai/polaris version 2>/dev/null || echo "0.0.0")
64
+ # Bump patch from the latest published version
65
+ IFS='.' read -r MAJOR MINOR PATCH <<< "$PUBLISHED"
66
+ NEW="$MAJOR.$MINOR.$((PATCH + 1))"
67
+ echo "Published: $PUBLISHED → Publishing: $NEW"
68
+ # Set version in package.json for this publish only (not committed)
69
+ npm version "$NEW" --no-git-tag-version
71
70
  npm publish --access public
72
-
73
- - name: Commit version bump
74
- run: |
75
- git config user.name "github-actions[bot]"
76
- git config user.email "github-actions[bot]@users.noreply.github.com"
77
- git add package.json
78
- git commit -m "v${{ env.VERSION }} [skip ci]"
79
- git push
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightupai/polaris",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "polaris": "bin/polaris"
package/src/web/serve.ts CHANGED
@@ -8,6 +8,7 @@ const port = Number(process.env.WEB_PORT ?? 3000);
8
8
  export default {
9
9
  port,
10
10
  fetch: app.fetch,
11
+ idleTimeout: 30,
11
12
  };
12
13
 
13
14
  console.error(`Polaris web app listening on http://localhost:${port}`);