-
Notifications
You must be signed in to change notification settings - Fork 12
73 lines (60 loc) · 1.69 KB
/
release-lakebase.yml
File metadata and controls
73 lines (60 loc) · 1.69 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Release @databricks/lakebase
on:
push:
branches:
- main
paths:
- 'packages/lakebase/**'
workflow_dispatch:
inputs:
dry-run:
description: "Dry run (no actual release)"
required: false
type: boolean
default: false
concurrency:
group: release
cancel-in-progress: false
jobs:
release:
runs-on:
group: databricks-protected-runner-group
labels: linux-ubuntu-latest
environment: release
env:
DRY_RUN: ${{ inputs.dry-run == true }}
permissions:
contents: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Setup pnpm
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0
- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 24
registry-url: "https://registry.npmjs.org"
cache: "pnpm"
- name: Update npm
run: npm install -g npm@latest
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Release
working-directory: packages/lakebase
run: |
if [ "$DRY_RUN" == "true" ]; then
pnpm release:dry
else
pnpm release:ci
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}