|
8 | 8 | branches: |
9 | 9 | - main |
10 | 10 | paths: |
11 | | - - npm/package.json # Please only commit this file, so we don't need to wait for test CI to pass. |
| 11 | + - package.json |
12 | 12 |
|
13 | 13 | env: |
14 | 14 | DEBUG: napi:* |
|
32 | 32 | with: |
33 | 33 | static-checking: localIsNew |
34 | 34 | file-url: https://unpkg.com/unrs-resolver@latest/package.json |
35 | | - file-name: npm/package.json |
| 35 | + file-name: package.json |
36 | 36 |
|
37 | 37 | - name: Set version name |
38 | 38 | if: steps.version.outputs.changed == 'true' |
@@ -102,7 +102,7 @@ jobs: |
102 | 102 | target: wasm32-wasip1-threads |
103 | 103 | build: pnpm build |
104 | 104 |
|
105 | | - name: Package ${{ matrix.target }} |
| 105 | + name: Build ${{ matrix.target }} |
106 | 106 | runs-on: ${{ matrix.os }} |
107 | 107 | steps: |
108 | 108 | - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1 |
@@ -148,10 +148,10 @@ jobs: |
148 | 148 | RUSTUP_IO_THREADS: 1 |
149 | 149 | with: |
150 | 150 | operating_system: freebsd |
151 | | - version: "14.2" |
| 151 | + version: 14.2 |
152 | 152 | memory: 8G |
153 | 153 | cpu_count: 3 |
154 | | - environment_variables: "DEBUG RUSTUP_IO_THREADS" |
| 154 | + environment_variables: DEBUG RUSTUP_IO_THREADS |
155 | 155 | shell: bash |
156 | 156 | run: | |
157 | 157 | sudo pkg install -y -f curl libnghttp2 node22 npm cmake |
@@ -211,18 +211,15 @@ jobs: |
211 | 211 |
|
212 | 212 | - name: Prepare dirs and artifacts |
213 | 213 | run: | |
214 | | - pnpm napi create-npm-dirs --package-json-path npm/package.json |
215 | | - pnpm napi artifacts --package-json-path npm/package.json --build-output-dir napi |
| 214 | + cp package.json napi/package.json |
| 215 | + pnpm napi create-npm-dirs |
| 216 | + pnpm napi artifacts --npm-dir npm --build-output-dir napi |
216 | 217 |
|
217 | 218 | - name: Publish npm packages as latest |
218 | 219 | env: |
219 | 220 | NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
220 | 221 | NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
221 | | - shell: bash |
222 | 222 | run: | |
223 | | - cp napi/index.js npm/index.js |
224 | | - cp napi/index.d.ts npm/index.d.ts |
225 | | - cp napi/browser.js npm/browser.js |
226 | 223 | echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc |
227 | | - pnpm napi pre-publish --no-gh-release -t npm --package-json-path npm/package.json |
228 | | - npm publish npm/ --tag latest --provenance --access public |
| 224 | + pnpm napi pre-publish --no-gh-release --tagstyle npm --npm-dir npm |
| 225 | + npm publish napi/ --tag latest --provenance --access public |
0 commit comments