Enhance Calibre path handling and improve worker pool management #18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created | |
| # For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages | |
| name: Node.js Package | |
| on: | |
| push: | |
| branches: master | |
| permissions: | |
| id-token: write # Required for OIDC trusted publishing | |
| contents: write # Required for git push | |
| jobs: | |
| publish-npm: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Checkout the repository | |
| - uses: actions/checkout@v4 | |
| # Set up Node.js environment | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| registry-url: https://registry.npmjs.org/ | |
| # Ensure we have npm 11.5.1+ for OIDC support | |
| - name: Update npm | |
| run: npm install -g npm@latest | |
| # Set Git user | |
| - name: Set Git user | |
| run: | | |
| git config user.name "GitHub Actions" | |
| git config user.email "actions@github.com" | |
| # Install dependencies | |
| - run: npm ci | |
| # Bump the patch version | |
| - name: Bump version and push commit | |
| run: | | |
| npm version patch | |
| git push origin master | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # Build the project | |
| - run: npm run build | |
| # Publish the package (uses OIDC - no token needed) | |
| - run: npm publish |