Skip to content

Commit 047634a

Browse files
ci: 删除冗余 release 工作流
1 parent a92af99 commit 047634a

2 files changed

Lines changed: 1 addition & 59 deletions

File tree

.github/workflows/publish-npm.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,7 @@ jobs:
3939
run: bun test
4040

4141
- name: Publish to npm
42-
run: |
43-
VERSION="${GITHUB_REF_NAME#v}"
44-
TAG="latest"
45-
if [[ "$VERSION" == *"beta"* ]]; then
46-
TAG="beta"
47-
elif [[ "$VERSION" == *"alpha"* ]]; then
48-
TAG="alpha"
49-
elif [[ "$VERSION" == *"rc"* ]]; then
50-
TAG="rc"
51-
fi
52-
npm publish --tag "$TAG" --access public
42+
run: npm publish --provenance --access public
5343
env:
5444
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5545

.github/workflows/release.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)