Skip to content

Commit 39448a3

Browse files
committed
chore: publish package
1 parent 568aea3 commit 39448a3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/build_release.yml

+12
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,15 @@ jobs:
6969
asset_path: ./dist/AIsouler_gkd.json5
7070
asset_name: AIsouler_gkd_${{ steps.version.outputs.version }}.json5
7171
asset_content_type: application/json
72+
73+
- name: Publish package
74+
if: ${{ steps.commit.outcome == 'success' }}
75+
run: |
76+
pnpm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
77+
pnpm publish --publish-branch=main
78+
79+
- name: sync jsDelivr
80+
if: ${{ steps.commit.outcome == 'success' }}
81+
run: |
82+
curl -X PUT 'https://purge.jsdelivr.net/gh/AIsouler/GKD_subscription@main/dist/AIsouler_gkd.json5'
83+
curl -X PUT 'https://purge.jsdelivr.net/gh/AIsouler/GKD_subscription@main/dist/AIsouler_gkd.version.json'

0 commit comments

Comments
 (0)