3.0
Publish to npm / publish (push) Failing after 29s
Publish to npm / publish (push) Failing after 29s
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user