fix(bun): remove need for manual setClient

This commit is contained in:
Ruben Fiszel
2023-08-12 01:23:26 +02:00
parent 0fdf38a235
commit 4794bd0b60
5 changed files with 27 additions and 16 deletions

View File

@@ -8,6 +8,7 @@ sed -i -e "/^export const VERSION =/s/= .*/= \"v$VERSION\";/" cli/main.ts
sed -i -e "/^export const VERSION =/s/= .*/= \"v$VERSION\";/" benchmarks/main.ts
sed -i -e "/version: /s/: .*/: $VERSION/" backend/windmill-api/openapi.yaml
sed -i -e "/version: /s/: .*/: $VERSION/" openflow.openapi.yaml
sed -i -e "/\"version\": /s/: .*,/: \"$VERSION\",/" typescript-client/package.json
sed -i -e "/\"version\": /s/: .*,/: \"$VERSION\",/" frontend/package.json
sed -i -e "/^version =/s/= .*/= \"$VERSION\"/" python-client/wmill/pyproject.toml
sed -i -e "/^windmill-api =/s/= .*/= \"\\^$VERSION\"/" python-client/wmill/pyproject.toml

18
.github/workflows/npm_on_release.yml vendored Normal file
View File

@@ -0,0 +1,18 @@
name: Publish deno-client
on:
push:
tags:
- "v*"
jobs:
build_npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16.x"
registry-url: "https://registry.npmjs.org"
- run: cd typescript-client && npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}