From 3a9ec699ebf31d7c5a36d7ef2ef563d0b895794c Mon Sep 17 00:00:00 2001 From: Hajime-san <41257923+Hajime-san@users.noreply.github.com> Date: Mon, 26 Feb 2024 17:34:40 +0900 Subject: [PATCH] feat(action): add publish workflow --- .github/workflows/publish.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/publish.yaml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..767dcd5 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,16 @@ +name: Publish to jsr + +on: + release: + types: [published] + +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: read # need for checkout + id-token: write # The OIDC ID token is used for authentication with JSR. + steps: + - uses: actions/checkout@v4 + - uses: denoland/setup-deno@v1 + - run: deno publish