ci: Turn off git checks during pnpm publish (#75) #6
Workflow file for this run
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: Publish Package | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| permissions: | |
| id-token: write # Required for OIDC | |
| contents: read | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| environment: release | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - uses: pnpm/action-setup@v4 | |
| - run: pnpm install | |
| - run: pnpm build | |
| - run: pnpm test | |
| - name: Read version and publish | |
| run: | | |
| # All packages are expected to have the same version | |
| VERSION=$(jq -r .version packages/deck.gl-raster/package.json) | |
| if [[ "$VERSION" == *alpha* || "$VERSION" == *beta* ]]; then | |
| pnpm publish --recursive --no-git-checks --tag beta | |
| else | |
| pnpm publish --recursive --no-git-checks | |
| fi |