chore: On zod v4, v4 is already the default import (#44) #52
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
| # https://github.com/marketplace/actions/release-please-action | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| name: release-please | |
| jobs: | |
| release-please: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: googleapis/release-please-action@v4 | |
| id: release | |
| with: | |
| release-type: node | |
| - uses: actions/checkout@v4 | |
| # Ensure that a publication only occurs when a new release is created | |
| if: ${{ steps.release.outputs.release_created }} | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| registry-url: 'https://registry.npmjs.org' | |
| if: ${{ steps.release.outputs.release_created }} | |
| - run: yarn install --frozen-lockfile | |
| if: ${{ steps.release.outputs.release_created }} | |
| - run: yarn build | |
| if: ${{ steps.release.outputs.release_created }} | |
| - run: npm publish --access public | |
| env: | |
| NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | |
| if: ${{ steps.release.outputs.release_created }} |