diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d911950..172bd1f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,6 +49,19 @@ 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') }} + 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: