Skip to content

chore: Test workspace trusted publishing with pnpm (#72) #3

chore: Test workspace trusted publishing with pnpm (#72)

chore: Test workspace trusted publishing with pnpm (#72) #3

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
- uses: volta-cli/action@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 --tag beta
else
pnpm publish --recursive
fi