engines commit d8778217ee9dd8d24d22ecb330ef743db5cccd66 #927
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: dry-publish | |
| # Run on push only for main, if not it will trigger push & pull_request on PRs at the same time | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - '*.md' | |
| - 'LICENSE' | |
| - 'renovate.json' | |
| pull_request: | |
| paths-ignore: | |
| - '*.md' | |
| - 'LICENSE' | |
| - 'renovate.json' | |
| workflow_dispatch: | |
| env: | |
| CI: true | |
| jobs: | |
| build: | |
| timeout-minutes: 5 | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Debounce so we won't run competing jobs if we merge multiple PRs in prisma-engines in quick succesion | |
| - name: Debounce 1 minute | |
| uses: zachary95/github-actions-debounce@v0.1.0 | |
| with: | |
| wait: 60 | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - run: bash .github/workflows/setup.sh | |
| - run: pnpm run publish-all --dry | |
| id: publish_script | |
| env: | |
| GITHUB_EVENT_CLIENT_PAYLOAD: '{"branch": "main", "commit": "e2942655e5370b20e0b3942f4717c2a302b0b620"}' | |
| # https://docs.npmjs.com/generating-provenance-statements | |
| NPM_CONFIG_PROVENANCE: true |