Skip to content
This repository has been archived by the owner on Feb 10, 2025. It is now read-only.

Commit

Permalink
chore: publish package
Browse files Browse the repository at this point in the history
  • Loading branch information
AIsouler committed Mar 13, 2024
1 parent 568aea3 commit 39448a3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,15 @@ jobs:
asset_path: ./dist/AIsouler_gkd.json5
asset_name: AIsouler_gkd_${{ steps.version.outputs.version }}.json5
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 --publish-branch=main
- name: sync jsDelivr
if: ${{ steps.commit.outcome == 'success' }}
run: |
curl -X PUT 'https://purge.jsdelivr.net/gh/AIsouler/GKD_subscription@main/dist/AIsouler_gkd.json5'
curl -X PUT 'https://purge.jsdelivr.net/gh/AIsouler/GKD_subscription@main/dist/AIsouler_gkd.version.json'

0 comments on commit 39448a3

Please sign in to comment.