mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-19 00:05:19 +08:00
chore: Publish package
This commit is contained in:
10
.github/workflows/build_release.yml
vendored
10
.github/workflows/build_release.yml
vendored
@@ -69,3 +69,13 @@ jobs:
|
|||||||
asset_path: ./dist/AIsouler_gkd.json5
|
asset_path: ./dist/AIsouler_gkd.json5
|
||||||
asset_name: AIsouler_gkd_${{ steps.version.outputs.version }}.json5
|
asset_name: AIsouler_gkd_${{ steps.version.outputs.version }}.json5
|
||||||
asset_content_type: application/json
|
asset_content_type: application/json
|
||||||
|
|
||||||
|
- name: Publish package
|
||||||
|
if: ${{ steps.commit.outcome == 'success' }}
|
||||||
|
run: |
|
||||||
|
pnpm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
|
||||||
|
pnpm publish
|
||||||
|
|
||||||
|
- name: sync npmmirror
|
||||||
|
if: ${{ steps.commit.outcome == 'success' }}
|
||||||
|
run: curl -X PUT 'https://registry-direct.npmmirror.com/AIsouler/GKD_subscription/sync'
|
||||||
|
|||||||
Reference in New Issue
Block a user