Skip to content

Commit

Permalink
πŸ› Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tidurand committed Jul 22, 2024
1 parent 89c6b8f commit ae138a9
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,19 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create Release Pull Request and Publish
id: changesets-production
- name: Publish to npm
if: github.event.inputs.target == 'npm'
uses: changesets/action@v1
with:
publish: |
if [ "${{ github.event.inputs.target }}" == "npm" ]; then
pnpm release
else
pnpm release --registry=https://npm.pkg.github.com/
fi
publish: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish to GitHub Packages
if: github.event.inputs.target == 'github'
uses: changesets/action@v1
with:
publish: pnpm release --registry=https://npm.pkg.github.com/
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ae138a9

Please sign in to comment.