diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index 138cc383..0f7e68a0 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -14,8 +14,9 @@ jobs: - uses: actions/setup-node@v6 with: node-version: '24.x' - registry-url: 'https://registry.npmjs.org' - - run: npm install - - run: npm publish --provenance --access public - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file + registry-url: 'https://registry.npmjs.org' + package-manager-cache: false # never use caching in release builds + - run: npm ci + - run: npm run build --if-present + - run: npm test + - run: npm publish # Or: npm stage publish \ No newline at end of file