Openstatus sdk www.openstatus.dev

chore: add github action (#2)

authored by

Thibault Le Ouay and committed by
GitHub
3c887e7a 67ee96a0

+47 -1
+46
.github/workflows/publish.yml
··· 1 + name: Publish 2 + on: 3 + push: 4 + tags: 5 + - "*" 6 + 7 + permissions: 8 + id-token: write # Required for OIDC 9 + contents: read 10 + 11 + jobs: 12 + publish_jsr: 13 + runs-on: ubuntu-latest 14 + permissions: 15 + contents: read 16 + id-token: write 17 + steps: 18 + - uses: actions/checkout@v5 19 + - name: Install Deno 20 + uses: denoland/setup-deno@v2 21 + with: 22 + deno-version: v2.x 23 + - name: Publish package 24 + run: deno publish 25 + publish_npm: 26 + runs-on: ubuntu-latest 27 + permissions: 28 + contents: read 29 + id-token: write 30 + steps: 31 + - uses: actions/checkout@v5 32 + - name: Setup Node.js 33 + uses: actions/setup-node@v4 34 + with: 35 + node-version: '24' 36 + registry-url: 'https://registry.npmjs.org' 37 + - name: Install Deno 38 + uses: denoland/setup-deno@v2 39 + with: 40 + deno-version: v2.x 41 + - name: Generate code 42 + run: deno run --allow-all scripts/build_npm.ts 43 + 44 + - name: Publish to npm 45 + working-directory: ./npm 46 + run: npm publish
+1 -1
scripts/build_npm.ts
··· 12 12 package: { 13 13 // package.json properties 14 14 name: "@openstatus/sdk-node", 15 - version: Deno.args[0], 15 + version: "0.0.1", 16 16 description: "SDK for openstatus.", 17 17 license: "MIT", 18 18 repository: {