|
1 | | -name: Publish Package to npm |
| 1 | +name: Publish |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | push: |
@@ -133,22 +133,22 @@ jobs: |
133 | 133 | fail-fast: false |
134 | 134 | matrix: |
135 | 135 | settings: |
136 | | - - host: macos-latest |
137 | | - target: x86_64-apple-darwin |
138 | | - build: bun run build --target x86_64-apple-darwin |
139 | | - - host: windows-latest |
140 | | - build: bun run build --target x86_64-pc-windows-msvc |
141 | | - target: x86_64-pc-windows-msvc |
| 136 | + # - host: macos-latest |
| 137 | + # target: x86_64-apple-darwin |
| 138 | + # build: bun run build --target x86_64-apple-darwin |
| 139 | + # - host: windows-latest |
| 140 | + # build: bun run build --target x86_64-pc-windows-msvc |
| 141 | + # target: x86_64-pc-windows-msvc |
142 | 142 | - host: ubuntu-latest |
143 | 143 | target: x86_64-unknown-linux-gnu |
144 | 144 | build: bun run build --target x86_64-unknown-linux-gnu --use-napi-cross |
145 | | - - host: macos-latest |
146 | | - target: aarch64-apple-darwin |
147 | | - build: bun run build --target aarch64-apple-darwin |
| 145 | + # - host: macos-latest |
| 146 | + # target: aarch64-apple-darwin |
| 147 | + # build: bun run build --target aarch64-apple-darwin |
148 | 148 | name: Node Build - ${{ matrix.settings.target }} |
149 | 149 | runs-on: ${{ matrix.settings.host }} |
150 | 150 | env: |
151 | | - DEBUG: napi:* |
| 151 | + # DEBUG: napi:* |
152 | 152 | MACOSX_DEPLOYMENT_TARGET: '10.13' |
153 | 153 | CARGO_INCREMENTAL: '1' |
154 | 154 | steps: |
@@ -277,6 +277,11 @@ jobs: |
277 | 277 | args: --release --out dist |
278 | 278 | working-directory: packages/python |
279 | 279 | manylinux: ${{ matrix.manylinux || '' }} |
| 280 | + |
| 281 | + - name: Set up Python 3.11 |
| 282 | + uses: actions/setup-python@v6 |
| 283 | + with: |
| 284 | + python-version: '3.11' |
280 | 285 | - name: Upload wheels |
281 | 286 | uses: actions/upload-artifact@v4 |
282 | 287 | with: |
@@ -304,22 +309,23 @@ jobs: |
304 | 309 | - name: Build |
305 | 310 | run: bun run build |
306 | 311 | working-directory: packages/node |
307 | | - - name: create npm dirs |
308 | | - run: bunx napi create-npm-dirs |
309 | | - working-directory: packages/node |
310 | | - - name: Download all artifacts |
311 | | - uses: actions/download-artifact@v5 |
312 | | - with: |
313 | | - path: packages/node/artifacts |
314 | | - - name: Move artifacts |
315 | | - run: bun run artifacts |
316 | | - working-directory: packages/node |
317 | | - - name: List packages |
318 | | - run: ls -R ./npm |
319 | | - working-directory: packages/node |
| 312 | + # - name: create npm dirs |
| 313 | + # run: bunx napi create-npm-dirs |
| 314 | + # working-directory: packages/node |
| 315 | + # - name: Download all artifacts |
| 316 | + # uses: actions/download-artifact@v5 |
| 317 | + # with: |
| 318 | + # path: packages/node/artifacts |
| 319 | + # - name: Move artifacts |
| 320 | + # run: bun run artifacts |
| 321 | + # working-directory: packages/node |
| 322 | + # - name: List packages |
| 323 | + # run: ls -R ./npm |
| 324 | + # working-directory: packages/node |
320 | 325 | - name: Publish |
321 | 326 | run: | |
322 | | - bun install -g @napi-rs/cli |
| 327 | + # bun install -g @napi-rs/cli |
| 328 | + bun run build |
323 | 329 | echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc |
324 | 330 | npm publish --access public |
325 | 331 | env: |
|
0 commit comments