mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
ci: update trusted-publishing (#22384)
This commit is contained in:
1
.github/workflows/publish-npm-nightly.yml
vendored
1
.github/workflows/publish-npm-nightly.yml
vendored
@@ -82,7 +82,6 @@ jobs:
|
||||
- name: Build & publish
|
||||
run: sh ./scripts/publish.sh
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}
|
||||
TAG_VERSION: 0.0.${{ steps.date.outputs.date }}
|
||||
GIT_HEAD: ${{env.GIT_HEAD}}
|
||||
REGISTRY: https://registry.npmjs.com/
|
||||
|
||||
1
.github/workflows/publish-npm.yml
vendored
1
.github/workflows/publish-npm.yml
vendored
@@ -78,7 +78,6 @@ jobs:
|
||||
- name: Build&publish
|
||||
run: sh ./scripts/publish.sh
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}
|
||||
TAG_VERSION: ${{env.TAG_VERSION}}
|
||||
GIT_HEAD: ${{env.GIT_HEAD}}
|
||||
REGISTRY: https://registry.npmjs.com/
|
||||
|
||||
@@ -1,2 +1,5 @@
|
||||
sed -i 's/"name": "element-plus",/"name": "@element-plus\/nightly",/' packages/element-plus/package.json
|
||||
sed -i '2s/element-plus/@element-plus\/nightly/' internal/build-constants/src/pkg.ts
|
||||
sed -i '2s/element-plus/@element-plus\/nightly/' internal/build-constants/src/pkg.ts
|
||||
|
||||
# remove line 14 to 22
|
||||
sed -i '14,22d' scripts/publish.sh
|
||||
|
||||
Reference in New Issue
Block a user