From 1fbed196cac6541b5d1f19a5900e23cc79d1e893 Mon Sep 17 00:00:00 2001 From: JackChen Date: Sat, 11 Apr 2026 15:25:24 +0800 Subject: [PATCH] Revert "ci: add release workflow triggered by v*.*.* tags" --- .github/workflows/release.yml | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 354e244..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Release - -on: - push: - tags: - - 'v*.*.*' - -permissions: - contents: read - id-token: write - -jobs: - publish: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20 - registry-url: 'https://registry.npmjs.org' - cache: npm - - run: rm -f package-lock.json && npm install - - name: Verify tag matches package.json version - run: | - TAG_VERSION="${GITHUB_REF_NAME#v}" - PKG_VERSION=$(node -p "require('./package.json').version") - if [ "$TAG_VERSION" != "$PKG_VERSION" ]; then - echo "Tag version ($TAG_VERSION) does not match package.json version ($PKG_VERSION)" - exit 1 - fi - - run: npm run lint - - run: npm test - - run: npm publish --access public --provenance - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}