|
40 | 40 | - name: exoframe-client |
41 | 41 | workspace: exoframe-client |
42 | 42 | - name: exoframe |
43 | | - workspace: exoframe-cli |
44 | | - build: npm run build -w exoframe-cli |
| 43 | + workspace: exoframe |
| 44 | + package_dir: exoframe-cli |
| 45 | + build: npm run build -w exoframe |
45 | 46 | - name: exoframe-server |
46 | 47 | workspace: exoframe-server |
47 | 48 | server: true |
|
64 | 65 | run: | |
65 | 66 | TAG="${{ needs.detect-tag.outputs.npm_tag }}" |
66 | 67 | PACKAGE="${{ matrix.name }}" |
| 68 | + PACKAGE_DIR="${{ matrix.package_dir || matrix.workspace }}" |
67 | 69 | current=$(npm info "${PACKAGE}@${TAG}" version 2>/dev/null || true) |
68 | 70 | echo "current=${current:-none}" >> "$GITHUB_OUTPUT" |
69 | | - echo "new=$(npm info ./packages/${{ matrix.workspace }} version)" >> "$GITHUB_OUTPUT" |
| 71 | + echo "new=$(npm info ./packages/${PACKAGE_DIR} version)" >> "$GITHUB_OUTPUT" |
70 | 72 |
|
71 | 73 | - name: install |
72 | 74 | if: ${{ steps.versions.outputs.current != steps.versions.outputs.new }} |
@@ -98,11 +100,13 @@ jobs: |
98 | 100 | - name: get version |
99 | 101 | if: ${{ matrix.server && steps.versions.outputs.current != steps.versions.outputs.new }} |
100 | 102 | id: version |
101 | | - run: echo "new=$(npm info ./packages/${{ matrix.workspace }} version)" >> "$GITHUB_OUTPUT" |
| 103 | + env: |
| 104 | + PACKAGE_DIR: ${{ matrix.package_dir || matrix.workspace }} |
| 105 | + run: echo "new=$(npm info ./packages/${PACKAGE_DIR} version)" >> "$GITHUB_OUTPUT" |
102 | 106 |
|
103 | 107 | - name: Build & push docker image |
104 | 108 | if: ${{ matrix.server && steps.versions.outputs.current != steps.versions.outputs.new }} |
105 | | - working-directory: ./packages/${{ matrix.workspace }} |
| 109 | + working-directory: ./packages/${{ matrix.package_dir || matrix.workspace }} |
106 | 110 | env: |
107 | 111 | IMAGE_NAME: exoframe/server |
108 | 112 | GHCR_IMAGE_NAME: exoframejs/server |
|
0 commit comments