3.0
Publish to npm / publish (push) Failing after 29s

This commit is contained in:
2026-04-08 01:07:10 +08:00
parent c100973590
commit d44938e456
17 changed files with 1574 additions and 1366 deletions
+7 -7
View File
@@ -20,14 +20,14 @@ jobs:
node-version: "24"
registry-url: "https://registry.npmjs.org"
- name: Get version from tag
id: version
- name: Replace version placeholder
run: |
VERSION="${GITHUB_REF#refs/tags/}"
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Update package.json version
run: npm pkg set version=${{ steps.version.outputs.version }}
echo "Publishing version: $VERSION"
# Update package.json
npm pkg set version=$VERSION
# Replace version placeholders in source files
sed -i "s/0.0.0-version-placeholder/$VERSION/g" ./src/types.ts
- name: Install dependencies
run: npm ci
@@ -36,4 +36,4 @@ jobs:
run: npm run build
- name: Publish to npm
run: npm publish --access public
run: npm publish --access public