-
Notifications
You must be signed in to change notification settings - Fork 16
51 lines (45 loc) · 1.55 KB
/
release.yml
File metadata and controls
51 lines (45 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
submodules: true
# Create test data in geotiff-test-data so that tests pass
- uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4
with:
pixi-version: v0.63.2
working-directory: ./fixtures/geotiff-test-data
# NPY fixtures are generated from the GeoTIFF fixtures on demand with
# rasterio
- name: Create npy fixtures
working-directory: ./fixtures/geotiff-test-data
run: pixi run generate-npy
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5
- name: Use Node.js 20
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
with:
node-version: "24"
registry-url: "https://registry.npmjs.org"
cache: "pnpm"
- 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