Quellcode durchsuchen

ci: manual JSR publish workflow

Sv443 vor 6 Monaten
Ursprung
Commit
5456201585

+ 28 - 0
.github/workflows/build-and-publish-jsr.yml

@@ -0,0 +1,28 @@
+name: "Build and Publish on JSR"
+
+on:
+  # manual only for now
+  workflow_dispatch:
+
+concurrency: ${{ github.workflow }}-${{ github.ref }}
+
+jobs:
+  publish:
+    runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        node-version: [22.x]
+    permissions:
+      contents: read
+      id-token: write
+    steps:
+      - uses: actions/checkout@v4
+      - uses: actions/setup-node@v4
+        with:
+          node-version: ${{ matrix.node-version }}
+      - name: Install dependencies
+        run: npm ci
+      - name: Build package
+        run: npm run build-all
+      - name: Publish on JSR
+        run: npm run publish-package-jsr

+ 1 - 1
.github/workflows/build-and-publish.yml → .github/workflows/build-and-publish-npm.yml

@@ -1,4 +1,4 @@
-name: "Build and Publish"
+name: "Build and Publish on NPM"
 
 on:
   push: