Skip to content

Commit

Permalink
fix: auto publish npm packages
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Mar 30, 2024
1 parent b552a2a commit 9072294
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/release-please.yml
Expand Up @@ -79,6 +79,16 @@ jobs:
run: pnpm package
if: ${{ steps.release.outputs.release_created }}

# Build for production and Archive package
- name: Publish to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
pnpm publish -F universal-picgo-store --tag latest
pnpm publish -F universal-picgo --tag latest
pnpm publish -F zhi-siyuan-picgo --tag latest
if: ${{ steps.release.outputs.release_created }}

# Upload package to release
# https://github.com/philips-labs/terraform-aws-github-runner/blob/main/.github/workflows/release.yml#L46
- name: Upload package.zip to the release
Expand Down

0 comments on commit 9072294

Please sign in to comment.