|
@@ -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
|