Skip to content

A fast, helpful, and open-source document parser

use npm trusted publishing

Logan Markewichb754dc3ddc46
diff --git a/.github/workflows/release-node.yml b/.github/workflows/release-node.yml
index 3ee5957..a4670e7 100644
--- a/.github/workflows/release-node.yml
+++ b/.github/workflows/release-node.yml
@@ -327,9 +327,13 @@ jobs:
- uses: actions/setup-node@v4
with:
- node-version: 20
+ node-version: 24
registry-url: https://registry.npmjs.org
+ # npm trusted publishing (OIDC) requires npm >= 11.5.1
+ - name: Update npm
+ run: npm install -g npm@latest
+
- name: Install dependencies
working-directory: packages/node
run: npm install --ignore-scripts
@@ -423,7 +427,6 @@ jobs:
if: ${{ !inputs.dry-run }}
working-directory: packages/node
env:
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TAG: ${{ inputs.beta && 'beta' || 'latest' }}
run: |
for dir in npm/*/; do
@@ -439,7 +442,6 @@ jobs:
if: ${{ !inputs.dry-run }}
working-directory: packages/node
env:
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TAG: ${{ inputs.beta && 'beta' || 'latest' }}
run: npm publish --access public --provenance --tag "$NPM_TAG"
diff --git a/.github/workflows/release-wasm.yml b/.github/workflows/release-wasm.yml
index de0cc66..d5c0944 100644
--- a/.github/workflows/release-wasm.yml
+++ b/.github/workflows/release-wasm.yml
@@ -92,9 +92,13 @@ jobs:
- uses: actions/setup-node@v4
with:
- node-version: 20
+ node-version: 24
registry-url: https://registry.npmjs.org
+ # npm trusted publishing (OIDC) requires npm >= 11.5.1
+ - name: Update npm
+ run: npm install -g npm@latest
+
- name: Download WASM artifacts
uses: actions/download-artifact@v4
with:
@@ -105,7 +109,6 @@ jobs:
if: ${{ !inputs.dry-run }}
working-directory: packages/wasm
env:
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TAG: ${{ inputs.beta && 'beta' || 'latest' }}
run: npm publish --access public --provenance --tag "$NPM_TAG" --ignore-scripts