Merge pull request #23 from Michael-Obele/release-please--branches--m… #61
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
| name: Release Please | |
| on: | |
| push: | |
| branches: | |
| - master | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| id-token: write # Required by NPM Provenance to cryptographically sign the package | |
| jobs: | |
| release-please: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: googleapis/release-please-action@v4 | |
| id: release | |
| with: | |
| config-file: packages/core/release-please-config.json | |
| manifest-file: packages/core/.release-please-manifest.json | |
| - name: Checkout repository | |
| if: ${{ steps.release.outputs.release_created }} | |
| uses: actions/checkout@v4 | |
| - name: Install bun | |
| if: ${{ steps.release.outputs.release_created }} | |
| uses: oven-sh/setup-bun@v1 | |
| - name: Setup Node (Required for npm provenance) | |
| if: ${{ steps.release.outputs.release_created }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| registry-url: https://registry.npmjs.org | |
| - name: Install dependencies | |
| if: ${{ steps.release.outputs.release_created }} | |
| working-directory: packages/core | |
| run: bun install | |
| - name: Build project | |
| if: ${{ steps.release.outputs.release_created }} | |
| working-directory: packages/core | |
| env: | |
| DOCSHARK_VERSION: ${{ steps.release.outputs.version }} | |
| run: bun run build | |
| - name: Publish to NPM with provenance | |
| if: ${{ steps.release.outputs.release_created }} | |
| working-directory: packages/core | |
| run: npm publish --provenance --access public |