@@ -181,17 +181,6 @@ jobs:
181181 uses : actions/checkout@v3
182182 with :
183183 submodules : recursive
184-
185- - name : Install jq
186- uses : dcarbone/install-jq-action@v2.0.1
187-
188- - name : " Update version by tag"
189- shell : bash
190- run : |
191- echo "Version: ${{ inputs.new_version }}"
192- # Update the version in package.json
193- jq --arg version "${{ inputs.new_version }}" '.version = $version' package.json > /tmp/package.json
194- mv /tmp/package.json package.json
195184
196185 - uses : actions/setup-dotnet@v3
197186 if : runner.os == 'Windows'
@@ -308,6 +297,23 @@ jobs:
308297 with :
309298 dotnet-version : " 8.0.x"
310299
300+ - name : Install jq
301+ uses : dcarbone/install-jq-action@v2.0.1
302+
303+ - uses : actions/setup-node@v3
304+ with :
305+ node-version : " 20.x"
306+ registry-url : " https://registry.npmjs.org"
307+
308+ - name : " Update version by tag"
309+ working-directory : cortex-js
310+ shell : bash
311+ run : |
312+ echo "Version: ${{ needs.create-draft-release.outputs.version }}"
313+ # Update the version in package.json
314+ jq --arg version "${{ needs.create-draft-release.outputs.version }}" '.version = $version' package.json > /tmp/package.json
315+ mv /tmp/package.json package.json
316+
311317 - name : Install choco on Windows
312318 if : runner.os == 'Windows'
313319 run : |
@@ -318,8 +324,6 @@ jobs:
318324 node-version : " 20.x"
319325 registry-url : " https://registry.npmjs.org"
320326
321- - run : npm install -g yarn
322-
323327 - run : yarn install && yarn build && yarn build:binary
324328 working-directory : ./cortex-js
325329
0 commit comments