Skip to content

Commit

Permalink
ci: manual JSR publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Sv443 committed Nov 11, 2024
1 parent 4e8d58e commit 5456201
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/build-and-publish-jsr.yml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Build and Publish"
name: "Build and Publish on NPM"

on:
push:
Expand Down

0 comments on commit 5456201

Please sign in to comment.