Skip to content

Commit

Permalink
Fix/deploy GitHub Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
ishiko732 committed Nov 22, 2023
1 parent d81a50b commit c171ad8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ jobs:
packages: write # allow GITHUB_TOKEN to publish packages
id-token: write
steps:
- name: Check Pull Request Status
run: |
if [ "${{ github.event.pull_request.merged }}" = "true" ]; then
echo "Pull request merged successfully."
else
echo "Pull request not merged. Skipping further steps."
exit 0
fi
- uses: actions/checkout@v2
- uses: pnpm/[email protected]
with:
Expand Down Expand Up @@ -47,4 +55,5 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
registry: "https://npm.pkg.github.com"
provenance: true
access: public
tag: ${{ steps.determine-tag.outputs.tag }}

0 comments on commit c171ad8

Please sign in to comment.