diff --git a/.github/workflows/publish-wasm-internal.yml b/.github/workflows/publish-wasm-internal.yml index 2845eefde..a425bda6e 100644 --- a/.github/workflows/publish-wasm-internal.yml +++ b/.github/workflows/publish-wasm-internal.yml @@ -57,13 +57,23 @@ jobs: fi npm: - name: Publish NPM + name: Publish NPM - ${{matrix.license_type.readable}} environment: NPM runs-on: ubuntu-24.04 needs: setup permissions: contents: read id-token: write + strategy: + matrix: + license_type: + - artifact_name: "sdk-internal" + npm_folder: "npm" + readable: "open source license" + - artifact_name: "commercial-sdk-internal" + npm_folder: "bitwarden_license/npm" + readable: "commercial license" + steps: - name: Checkout repo uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 @@ -80,8 +90,8 @@ jobs: workflow: build-wasm-internal.yml workflow_conclusion: success branch: ${{ inputs.release_type == 'Dry Run' && 'main' || github.ref_name }} - artifacts: sdk-internal - path: crates/bitwarden-wasm-internal/npm + artifacts: ${{ matrix.license_type.artifact_name }} + path: crates/bitwarden-wasm-internal/${{ matrix.license_type.npm_folder }} - name: Set version run: |