diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index 6872ce0e..2742f00a 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -58,4 +58,14 @@ jobs: with: tag_name: v${{ steps.version.outputs.version }} release_name: Release ${{ steps.version.outputs.version }} - body_path: ./CHANGELOG.md \ No newline at end of file + body_path: ./CHANGELOG.md + + - 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/@gkd-kit/subscription/sync' \ No newline at end of file