Skip to content

Commit

Permalink
ci(blue-sdk): fix gh release comd
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubilmax committed Oct 22, 2024
1 parent f36182f commit b502adf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,14 @@ jobs:
- run: |
pnpm -r -c exec 'node ../../scripts/release/version.js'
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
echo "${{ steps.release.outputs.changelog }}" > CHANGELOG.md
if: steps.release.outputs.version
- run: pnpm publish --no-git-checks --access public --tag ${{ steps.release.outputs.channel }}
working-directory: packages/${{ matrix.package }}
if: steps.release.outputs.version

- run: gh release create ${{ steps.release.outputs.tag }} --target ${{ steps.release.outputs.branch }} --notes '${{ steps.release.outputs.changelog }}' --title '${{ steps.release.outputs.tag }}' ${{ steps.release.outputs.channel == 'latest' && '--latest' || '--prerelease' }}
- run: gh release create ${{ steps.release.outputs.tag }} --target ${{ steps.release.outputs.branch }} --notes-file CHANGELOG.md --title '${{ steps.release.outputs.tag }}' ${{ steps.release.outputs.channel == 'latest' && '--latest' || '--prerelease' }}
if: steps.release.outputs.version
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit b502adf

Please sign in to comment.