-
Notifications
You must be signed in to change notification settings - Fork 19
feat: split out @databricks/lakebase-auth with eager refresh and retry #461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
e544d6d
79a26f7
fe210c3
e2172d7
d67a0d4
146c606
8d5b36b
264974c
e013f24
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,110 @@ | ||
| name: Prepare Release Lakebase Auth | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - 'packages/lakebase-auth/**' | ||
|
|
||
| concurrency: | ||
| group: prepare-release-lakebase-auth | ||
| cancel-in-progress: false | ||
|
|
||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
|
|
||
| jobs: | ||
| prepare: | ||
| runs-on: | ||
| group: databricks-protected-runner-group | ||
| labels: linux-ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Setup JFrog npm | ||
| uses: ./.github/actions/setup-jfrog-npm | ||
|
|
||
| - name: Setup pnpm | ||
| uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | ||
| with: | ||
| node-version: 24 | ||
| cache: "pnpm" | ||
|
|
||
| - name: Install dependencies | ||
| run: pnpm install --frozen-lockfile | ||
|
|
||
| - name: Check for releasable commits | ||
| id: version | ||
| working-directory: packages/lakebase-auth | ||
| run: | | ||
| VERSION=$(pnpm exec release-it --release-version --ci) || true | ||
| if [[ "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then | ||
| echo "version=$VERSION" >> "$GITHUB_OUTPUT" | ||
| echo "Next version: $VERSION" | ||
| else | ||
| echo "No releasable commits — skipping release preparation" | ||
| echo "version=" >> "$GITHUB_OUTPUT" | ||
| fi | ||
|
|
||
| - name: Generate changelog | ||
| if: steps.version.outputs.version != '' | ||
| working-directory: packages/lakebase-auth | ||
| run: | | ||
| pnpm exec release-it ${{ steps.version.outputs.version }} --ci | ||
|
|
||
| - name: Sync version | ||
| if: steps.version.outputs.version != '' | ||
| run: pnpm exec tsx tools/sync-lakebase-auth-version.ts "${{ steps.version.outputs.version }}" | ||
|
|
||
| - name: Build | ||
| if: steps.version.outputs.version != '' | ||
| run: pnpm --filter=@databricks/lakebase-auth build:package | ||
|
|
||
| - name: Dist | ||
| if: steps.version.outputs.version != '' | ||
| run: pnpm --filter=@databricks/lakebase-auth dist | ||
|
|
||
| - name: SBOM | ||
| if: steps.version.outputs.version != '' | ||
| run: pnpm --filter=@databricks/lakebase-auth release:sbom | ||
|
|
||
| - name: Pack | ||
| if: steps.version.outputs.version != '' | ||
| run: npm pack packages/lakebase-auth/tmp | ||
|
|
||
| - name: Generate SHA256 | ||
| if: steps.version.outputs.version != '' | ||
| run: sha256sum *.tgz > SHA256SUMS | ||
|
|
||
| - name: Write version file | ||
| if: steps.version.outputs.version != '' | ||
| run: echo "${{ steps.version.outputs.version }}" > VERSION | ||
|
|
||
| - name: Upload release metadata | ||
| if: steps.version.outputs.version != '' | ||
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | ||
| with: | ||
| name: lakebase-auth-release-meta-${{ github.run_number }} | ||
| retention-days: 7 | ||
| path: VERSION | ||
|
|
||
| - name: Upload release artifacts | ||
| if: steps.version.outputs.version != '' | ||
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | ||
| with: | ||
| name: lakebase-auth-release-${{ github.run_number }} | ||
| retention-days: 7 | ||
| path: | | ||
| *.tgz | ||
| packages/lakebase-auth/changelog-diff.md | ||
| VERSION | ||
| SHA256SUMS |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| { | ||
| "$schema": "https://unpkg.com/release-it@19/schema/release-it.json", | ||
| "git": { | ||
| "commit": false, | ||
| "tag": false, | ||
| "push": false, | ||
| "requireBranch": false, | ||
| "requireCleanWorkingDir": false, | ||
| "requireCommits": true, | ||
| "requireCommitsFail": false, | ||
| "tagMatch": "lakebase-auth-v*", | ||
| "tagName": "lakebase-auth-v${version}", | ||
| "getLatestTagFromAllRefs": true, | ||
| "commitsPath": "." | ||
| }, | ||
| "github": { | ||
| "release": false | ||
| }, | ||
| "npm": false, | ||
| "hooks": {}, | ||
| "plugins": { | ||
| "@release-it/conventional-changelog": { | ||
| "preset": { | ||
| "name": "conventionalcommits", | ||
| "bumpStrict": true | ||
| }, | ||
| "infile": "changelog-diff.md", | ||
| "gitRawCommitsOpts": { "path": "." }, | ||
| "commitsOpts": { "path": "." } | ||
| } | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # Changelog | ||
|
|
||
| All notable changes to @databricks/lakebase-auth will be documented in this file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just a half of the changes required for the release - we'll need to:
I can take care of those items after my OOO 👍