From 8a7569afff1a7add4560ed2e125eebab1f9683f1 Mon Sep 17 00:00:00 2001 From: Eemeli Aro Date: Mon, 30 Dec 2024 16:58:16 +0200 Subject: [PATCH] ci: Add jsr.jsonc & jsr-publish workflow --- .github/workflows/jsr-publish.yml | 16 ++++++++++++++++ jsr.jsonc | 15 +++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 .github/workflows/jsr-publish.yml create mode 100644 jsr.jsonc diff --git a/.github/workflows/jsr-publish.yml b/.github/workflows/jsr-publish.yml new file mode 100644 index 00000000..5d9b63b0 --- /dev/null +++ b/.github/workflows/jsr-publish.yml @@ -0,0 +1,16 @@ +name: JSR Publish +on: + push: + tags: + - v2.* + workflow_dispatch: + +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: read + id-token: write + steps: + - uses: actions/checkout@v4 + - run: npx jsr publish diff --git a/jsr.jsonc b/jsr.jsonc new file mode 100644 index 00000000..cc50b180 --- /dev/null +++ b/jsr.jsonc @@ -0,0 +1,15 @@ +{ + "name": "@eemeli/yaml", + "version": "2.6.1", + "license": "ISC", + "exports": { + ".": "./src/index.ts", + "./util": "./src/util.ts" + }, + "exclude": ["*", "!LICENSE", "!README.md", "!src/", "src/cli.ts"], + + // deno.json option, see https://github.com/denoland/deno/issues/22651 + "compilerOptions": { + "noImplicitOverride": false + } +}