|
62 | 62 | # Get the matrix from the matrix.json file, without the object that has the IMAGE key
|
63 | 63 | export "PLATFORM_MATRIX=$(jq 'map(select(.PACKAGE_MANAGERS != null and (.PACKAGE_MANAGERS | contains(["npm"]))))' < .github/json_matrices/build-matrix.json | jq -c .)"
|
64 | 64 | echo "PLATFORM_MATRIX=${PLATFORM_MATRIX}" >> $GITHUB_OUTPUT
|
| 65 | + |
| 66 | + publish-rust-client: |
| 67 | + needs: [start-self-hosted-runner, load-platform-matrix] |
| 68 | + if: github.repository_owner == 'valkey-io' |
| 69 | + name: Publish Rust client to NPM |
| 70 | + runs-on: ubuntu-latest |
| 71 | + steps: |
| 72 | + - name: Checkout |
| 73 | + uses: actions/checkout@v4 |
| 74 | + with: |
| 75 | + submodules: "true" |
| 76 | + |
| 77 | + - name: Setup node |
| 78 | + uses: actions/setup-node@v4 |
| 79 | + with: |
| 80 | + node-version: "latest" |
| 81 | + registry-url: "https://registry.npmjs.org" |
| 82 | + scope: "${{ vars.NPM_SCOPE }}" |
| 83 | + always-auth: true |
| 84 | + |
| 85 | + - name: Publish Rust client |
| 86 | + working-directory: ./node/rust-client |
| 87 | + run: | |
| 88 | + npm ci |
| 89 | + npm run build |
| 90 | + npm publish --access public |
| 91 | + env: |
| 92 | + NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} |
65 | 93 |
|
66 | 94 | publish-binaries:
|
67 |
| - needs: [start-self-hosted-runner, load-platform-matrix] |
| 95 | + needs: [start-self-hosted-runner, load-platform-matrix, publish-rust-client] |
68 | 96 | if: github.repository_owner == 'valkey-io'
|
69 | 97 | name: Publish packages to NPM
|
70 | 98 | runs-on: ${{ matrix.build.RUNNER }}
|
@@ -216,7 +244,7 @@ jobs:
|
216 | 244 | publish-base-to-npm:
|
217 | 245 | if: github.event_name != 'pull_request'
|
218 | 246 | name: Publish the base NPM package
|
219 |
| - needs: publish-binaries |
| 247 | + needs: [publish-binaries, publish-rust-client] |
220 | 248 | runs-on: ubuntu-latest
|
221 | 249 | steps:
|
222 | 250 | - name: Checkout
|
@@ -378,7 +406,7 @@ jobs:
|
378 | 406 | working-directory: ./utils/release-candidate-testing/node
|
379 | 407 | run: |
|
380 | 408 | npm install
|
381 |
| - npm install --no-save @valkey/valkey-glide@${{ env.NPM_TAG }} |
| 409 | + npm install --no-save @valkey/valkey-glide@${{ env.NPM_TAG }} @valkey/glide-rs@${{ env.NPM_TAG }} |
382 | 410 | npm run test
|
383 | 411 |
|
384 | 412 | - name: Deprecating packages on failure
|
@@ -417,6 +445,8 @@ jobs:
|
417 | 445 |
|
418 | 446 | # Deprecating base package
|
419 | 447 | npm deprecate "@valkey/valkey-glide@${RELEASE_VERSION}" "This version has been deprecated" --force || true
|
| 448 | + # Deprecating Rust client package |
| 449 | + npm deprecate "@valkey/glide-rs@${RELEASE_VERSION}" "This version has been deprecated" --force || true |
420 | 450 |
|
421 | 451 | # Process platform matrix
|
422 | 452 | echo "${PLATFORM_MATRIX}" > platform_matrix.json
|
|
0 commit comments