@lightupai/polaris 0.0.6 → 0.0.7
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.
- package/.github/workflows/ci.yml +8 -17
- package/package.json +1 -1
package/.github/workflows/ci.yml
CHANGED
|
@@ -57,23 +57,14 @@ jobs:
|
|
|
57
57
|
|
|
58
58
|
- run: bun install
|
|
59
59
|
|
|
60
|
-
- name:
|
|
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
|