diff --git a/.github/change-versions.sh b/.github/change-versions.sh index 8c37510484..8974c283ab 100755 --- a/.github/change-versions.sh +++ b/.github/change-versions.sh @@ -12,6 +12,7 @@ sed -i -e "/^export const VERSION =/s/= .*/= \"v$VERSION\";/" ${root_dirpath}/be sed -i -e "/version: /s/: .*/: $VERSION/" ${root_dirpath}/backend/windmill-api/openapi.yaml sed -i -e "/version: /s/: .*/: $VERSION/" ${root_dirpath}/openflow.openapi.yaml sed -i -e "/\"version\": /s/: .*,/: \"$VERSION\",/" ${root_dirpath}/typescript-client/package.json +sed -i -e "/\"version\": /s/: .*,/: \"$VERSION\",/" ${root_dirpath}/typescript-client/jsr.json sed -i -e "/\"version\": /s/: .*,/: \"$VERSION\",/" ${root_dirpath}/frontend/package.json sed -i -e "/^version =/s/= .*/= \"$VERSION\"/" ${root_dirpath}/python-client/wmill/pyproject.toml sed -i -e "/^windmill-api =/s/= .*/= \"\\^$VERSION\"/" ${root_dirpath}/python-client/wmill/pyproject.toml diff --git a/.github/workflows/jsr_on_release.yml b/.github/workflows/jsr_on_release.yml new file mode 100644 index 0000000000..3a797fe842 --- /dev/null +++ b/.github/workflows/jsr_on_release.yml @@ -0,0 +1,16 @@ +name: Publish typescript-client on JSR + +on: + push: + tags: + - "v*" + +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: read + id-token: ${{ secrets.JSR_OIDC_ID_TOKEN }} + steps: + - uses: actions/checkout@v4 + - run: cd typescript-client && ./publish.jsr.sh