|
78 | 78 |
|
79 | 79 | - uses: actions/setup-node@v4 |
80 | 80 | with: |
81 | | - node-version: 20 |
| 81 | + node-version: 22 |
82 | 82 |
|
83 | 83 | - uses: dtolnay/rust-toolchain@stable |
84 | 84 | with: |
@@ -174,9 +174,12 @@ jobs: |
174 | 174 |
|
175 | 175 | - uses: actions/setup-node@v4 |
176 | 176 | with: |
177 | | - node-version: 20 |
| 177 | + node-version: 22 |
178 | 178 | registry-url: https://registry.npmjs.org |
179 | 179 |
|
| 180 | + - name: Ensure latest npm (for trusted publishing) |
| 181 | + run: npm install -g npm@latest |
| 182 | + |
180 | 183 | - name: Install @napi-rs/cli |
181 | 184 | run: npm install -g @napi-rs/cli |
182 | 185 |
|
@@ -214,35 +217,25 @@ jobs: |
214 | 217 | npm publish "$dir" --access public --provenance || echo "Skipping $(basename "$dir")" |
215 | 218 | done |
216 | 219 | working-directory: packages/codec |
217 | | - env: |
218 | | - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
219 | 220 |
|
220 | 221 | - name: Publish @srcmap/codec |
221 | 222 | run: npm publish --access public --provenance --ignore-scripts |
222 | 223 | working-directory: packages/codec |
223 | | - env: |
224 | | - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
225 | 224 |
|
226 | 225 | - name: Publish @srcmap/sourcemap platform packages |
227 | 226 | run: | |
228 | 227 | for dir in npm/*/; do |
229 | 228 | npm publish "$dir" --access public --provenance || echo "Skipping $(basename "$dir")" |
230 | 229 | done |
231 | 230 | working-directory: packages/sourcemap |
232 | | - env: |
233 | | - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
234 | 231 |
|
235 | 232 | - name: Publish @srcmap/sourcemap |
236 | 233 | run: npm publish --access public --provenance --ignore-scripts |
237 | 234 | working-directory: packages/sourcemap |
238 | | - env: |
239 | | - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
240 | 235 |
|
241 | 236 | - name: Publish @srcmap/sourcemap-wasm |
242 | 237 | run: npm publish --access public --provenance --ignore-scripts |
243 | 238 | working-directory: packages/sourcemap-wasm |
244 | | - env: |
245 | | - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
246 | 239 |
|
247 | 240 | create-release: |
248 | 241 | name: Create GitHub Release |
|
0 commit comments