@@ -33,37 +33,37 @@ jobs:
3333 fetch-depth : 0
3434 ref : prod
3535
36+ - name : Install pnpm
37+ uses : pnpm/action-setup@v4
38+
3639 - name : Setup Node.js
3740 uses : actions/setup-node@v4
3841 with :
3942 node-version : ' 20.x'
4043 registry-url : ' https://registry.npmjs.org'
41- cache : ' npm '
44+ cache : ' pnpm '
4245
4346 - name : Configure Git
4447 run : |
4548 git config user.name "github-actions[bot]"
4649 git config user.email "github-actions[bot]@users.noreply.github.com"
4750
4851 - name : Install dependencies
49- run : npm ci
52+ run : pnpm install --frozen-lockfile
5053 env :
5154 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5255
5356 - name : Run validation
54- run : npm run validate
57+ run : pnpm run validate
5558
5659 - name : Build production with fresh docs
57- run : npm run build:prod
60+ run : pnpm run build:prod
5861 env :
5962 NODE_OPTIONS : --max-old-space-size=6144
6063
61- - name : Update npm
62- run : npm install -g npm@latest
63-
6464 - name : Publish to npm
6565 if : ${{ github.event.inputs.skip_npm != 'true' }}
66- run : npm publish --provenance --access public --ignore-scripts
66+ run : pnpm publish --provenance --access public --no-git-checks
6767 env :
6868 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
6969
@@ -72,10 +72,10 @@ jobs:
7272 RELEASE_TAG : ${{ github.event.release.tag_name }}
7373 run : |
7474 echo "📋 Indexing Parchment mappings..."
75- npm run index-mappings:force
75+ pnpm run index-mappings:force
7676
7777 echo "📋 Generating mappings manifest..."
78- npm run mappings:manifest -- --bump patch --changelog "Release $RELEASE_TAG"
78+ pnpm run mappings:manifest -- --bump patch --changelog "Release $RELEASE_TAG"
7979
8080 # Log the new mappings version
8181 MAPPINGS_VERSION=$(node -p "require('./data/parchment-mappings-manifest.json').version")
8989
9090 # Regenerate manifest with a patch bump to ensure a new version is created
9191 # This makes the DB version independent of the package version
92- npm run db:manifest -- --bump patch --changelog "Release $RELEASE_TAG" --release-tag "$RELEASE_TAG"
92+ pnpm run db:manifest -- --bump patch --changelog "Release $RELEASE_TAG" --release-tag "$RELEASE_TAG"
9393
9494 # Log the new DB version
9595 DB_VERSION=$(node -p "require('./data/db-manifest.json').version")
0 commit comments