From c1363751001c5aaf3efc0f2eb0e5ef48af16b34c Mon Sep 17 00:00:00 2001 From: xRain Date: Wed, 8 Apr 2026 01:15:33 +0800 Subject: [PATCH] fix ci --- .github/workflows/publish.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6046eaf..d470ea7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -26,14 +26,12 @@ jobs: 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 - name: Build - run: npm run build + run: npm run build -- --define=$VERSION - name: Publish to npm run: npm publish --access public \ No newline at end of file