Skip to content

ci: Turn off git checks during pnpm publish (#75) #6

ci: Turn off git checks during pnpm publish (#75)

ci: Turn off git checks during pnpm publish (#75) #6

Workflow file for this run

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