You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo "::error::Input version is required for stable releases from main. Re-run with the matching version (no 'v' prefix)."
62
+
exit 1
63
+
fi
52
64
if [ "$INPUT_VERSION" != "$PKG_VERSION" ]; then
53
65
echo "::error::Input version ($INPUT_VERSION) does not match package.json version ($PKG_VERSION). Update package.json or re-run with the matching version (no 'v' prefix)."
54
66
exit 1
@@ -63,12 +75,26 @@ jobs:
63
75
node-version: '22'
64
76
registry-url: 'https://registry.npmjs.org'
65
77
66
-
- name: Publish to NPM
67
-
run: cd export/${{ env.PROJECT_NAME }} && npm publish --access public --tag latest
68
-
env:
69
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
78
+
- name: Update npm (for OIDC support)
79
+
run: npm install -g npm@11.16.0
80
+
81
+
- name: Update version (dev branch)
82
+
if: github.ref == 'refs/heads/dev'
83
+
run: npm version --new-version "0.0.0-snapshot.${GITHUB_SHA::8}" --no-git-tag-version
0 commit comments