build-and-publish-jsr.yml 630 B

12345678910111213141516171819202122232425262728
  1. name: "Build and Publish on JSR"
  2. on:
  3. # manual only for now
  4. workflow_dispatch:
  5. concurrency: ${{ github.workflow }}-${{ github.ref }}
  6. jobs:
  7. publish:
  8. runs-on: ubuntu-latest
  9. strategy:
  10. matrix:
  11. node-version: [22.x]
  12. permissions:
  13. contents: read
  14. id-token: write
  15. steps:
  16. - uses: actions/checkout@v4
  17. - uses: actions/setup-node@v4
  18. with:
  19. node-version: ${{ matrix.node-version }}
  20. - name: Install dependencies
  21. run: npm ci
  22. - name: Build package
  23. run: npm run build-all
  24. - name: Publish on JSR
  25. run: npm run publish-package-jsr