Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,28 @@ jobs:
steps:
- uses: actions/checkout@v6

- uses: pnpm/action-setup@v5

- name: Set up Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: "24"
registry-url: "https://registry.npmjs.org"
cache: "pnpm"
package-manager-cache: false # never use caching in release builds

- run: pnpm install
- run: pnpm build
- run: pnpm test

# Might need --recursive in this publish command?
- name: Read version and publish
env:
# Clear the sentinel value setup-node writes; otherwise npm tries to
# use it as a bearer token and rejects OIDC.
# https://github.com/actions/setup-node/issues/1440#issuecomment-3571890875
NODE_AUTH_TOKEN: ""
run: |
VERSION=$(jq -r .version package.json)
VERSION=$(jq -r .version packages/deck.gl-geoarrow/package.json)
if [[ "$VERSION" == *alpha* || "$VERSION" == *beta* ]]; then
pnpm publish --no-git-checks --tag beta
else
Expand Down