Skip to content

Commit

Permalink
fix(ci): add deno publish --dry-run step
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Aug 14, 2024
1 parent 11b12c3 commit 5bcb4ef
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,20 @@ jobs:
bytes=$(bun build --minify mod.ts | bunx terser --mangle --compress --module --ecma=2020 | gzip -9 | wc -c)
echo "::notice::${bytes} b (gzip)"
dryrun:
needs: [test]
name: "Publish (dry run)"
if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: ${{ env.DENO_VERSION }}
- run: deno task build 1.2.3
- run: deno publish --no-check -c jsr.json --dry-run


# https://jsr.io/docs/publishing-packages#publishing-from-github-actions
# https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages#publishing-packages-to-the-npm-registry
publish:
Expand Down

0 comments on commit 5bcb4ef

Please sign in to comment.