From 047634afe6dc03a7407f461f9a7689e2eac39e87 Mon Sep 17 00:00:00 2001 From: claude-code-best Date: Thu, 23 Apr 2026 22:45:53 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E5=88=A0=E9=99=A4=E5=86=97=E4=BD=99=20re?= =?UTF-8?q?lease=20=E5=B7=A5=E4=BD=9C=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish-npm.yml | 12 +------- .github/workflows/release.yml | 48 ------------------------------- 2 files changed, 1 insertion(+), 59 deletions(-) delete mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 3b1111ebe..8710c00a1 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -39,17 +39,7 @@ jobs: run: bun test - name: Publish to npm - run: | - VERSION="${GITHUB_REF_NAME#v}" - TAG="latest" - if [[ "$VERSION" == *"beta"* ]]; then - TAG="beta" - elif [[ "$VERSION" == *"alpha"* ]]; then - TAG="alpha" - elif [[ "$VERSION" == *"rc"* ]]; then - TAG="rc" - fi - npm publish --tag "$TAG" --access public + run: npm publish --provenance --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index e22adce4c..000000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: Release - -on: - push: - tags: - - 'v*' - -permissions: - contents: write - -jobs: - release: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Generate changelog - id: changelog - run: | - PREV_TAG=$(git tag --sort=-version:refname | head -2 | tail -1) - if [ "$PREV_TAG" = "$GITHUB_REF_NAME" ]; then - PREV_TAG="" - fi - - if [ -n "$PREV_TAG" ]; then - COMMITS=$(git log "${PREV_TAG}..HEAD" --pretty=format:"- %s (%h)" --no-merges) - else - COMMITS=$(git log --pretty=format:"- %s (%h)" --no-merges -20) - fi - - { - echo "commits<> "$GITHUB_OUTPUT" - - - name: Create GitHub Release - uses: softprops/action-gh-release@v2 - with: - name: ${{ github.ref_name }} - body: | - ## What's Changed - - ${{ steps.changelog.outputs.commits }} - - **Full Changelog**: https://github.com/${{ github.repository }}/compare/${{ github.ref_name }}^...${{ github.ref_name }} - draft: false - prerelease: ${{ contains(github.ref_name, 'rc') || contains(github.ref_name, 'beta') || contains(github.ref_name, 'alpha') }}