[READ-ONLY] Mirror of https://github.com/bombshell-dev/clack. Effortlessly build beautiful command-line apps bomb.sh/docs/clack/basics/getting-started/
cli command-line command-line-app node prompt prompts
5

Configure Feed

Select the types of activity you want to include in your feed.

ci: update release workflow and add jsr job (#280)

authored by

Paul Valladares and committed by
GitHub
(Apr 8, 2025, 7:53 AM -0600) 3552578a a4f50347

+16 -5
+10 -3
.github/workflows/release.yml
··· 25 25 with: 26 26 node-version: 20 27 27 cache: "pnpm" 28 - - run: pnpm install 28 + # Run prepublish to ensure everything is built properly 29 29 # TODO: is this manual build step actually needed? 30 + - run: pnpm run ci:install 30 31 # `prepack` hook _should_ run but doesn't seem to. 31 - - run: pnpm run build 32 - - uses: changesets/action@v1 32 + - run: pnpm run ci:prepublish 33 + - name: Create Release Pull Request or Publish to npm 34 + id: changesets 35 + uses: changesets/action@v1 33 36 with: 34 37 version: pnpm run ci:version 35 38 publish: pnpm run ci:publish ··· 38 41 env: 39 42 NPM_TOKEN: ${{ secrets.NPM_TOKEN }} 40 43 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 44 + 45 + - name: Publish to jsr.io 46 + if: steps.changesets.outputs.published == 'true' 47 + run: pnpx @qingshaner/jsr-release publish --changesetReleases='${{ steps.changesets.outputs.publishedPackages }}'
+6 -2
package.json
··· 11 11 "lint": "biome lint --write --unsafe", 12 12 "type-check": "biome lint && tsc", 13 13 "test": "pnpm --color -r run test", 14 - "ci:version": "changeset version && pnpm install --no-frozen-lockfile", 15 - "ci:publish": "changeset publish" 14 + "ci:install": "pnpm install --no-frozen-lockfile", 15 + "ci:version": "changeset version && pnpx @qingshaner/jsr-release --allowDirty version --sync", 16 + "ci:publish": "changeset publish", 17 + "ci:prepublish": "pnpm build", 18 + "jsr:test": "pnpm --filter \"@clack/*\" jsr --dry-run", 19 + "jsr:run": "pnpm --filter \"@clack/*\" jsr" 16 20 }, 17 21 "devDependencies": { 18 22 "@biomejs/biome": "1.9.4",