Skip to content

Commit

Permalink
Update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nazarhussain committed Mar 3, 2025
1 parent cb8a383 commit 67f1597
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,13 @@ jobs:
- run: git config user.name $(git --no-pager show -s --format='%an' HEAD)
if: ${{ steps.release.outputs.releases_created }}

- run: yarn build

- name: Build JSR
run: lerna run build:jsr
if: ${{ steps.release.outputs.releases_created }}

- name: Build NPM
run: lerna run build:npm
if: ${{ steps.release.outputs.releases_created }}

- env:
Expand All @@ -56,12 +62,20 @@ jobs:

- name: Check npm config
run: npm config list

- run: node_modules/.bin/lerna publish from-package --no-verify-access --yes

- name: Publish NPM
run: lerna run publish:npm
if: ${{ steps.release.outputs.releases_created }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish JSR
run: lerna run publish:jsr
if: ${{ steps.release.outputs.releases_created }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
JSR_AUTH_TOKEN: ${{ secrets.JSR_TOKEN }}


- name: Publish to Cloudflare Pages
if: ${{ steps.release.outputs.releases_created }}
uses: cloudflare/pages-action@1
Expand Down

0 comments on commit 67f1597

Please sign in to comment.