Skip to content

Commit b6946e4

Browse files
github-actions[bot]web-flowilia-db
authored
Release: v2.4.0 (#1328)
- Change our actions to release without preview flag - Remove pre-release modal - Add "what's new" section --------- Co-authored-by: releasebot <[email protected]> Co-authored-by: Ilia Babanov <[email protected]>
1 parent fc4e459 commit b6946e4

File tree

12 files changed

+63
-59
lines changed

12 files changed

+63
-59
lines changed

.github/workflows/create-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- run: |
2929
TITLE=$(git show -s --format=%B HEAD | head -n1)
3030
CHANGELOG_FILE=packages/databricks-vscode/CHANGELOG.md
31-
RELEASE_VERSION=$(cat $CHANGELOG_FILE | grep -E "^# Release: v(([0-9]+\.){2}[0-9]+).*" | head -n1 | sed -nr 's/.*Release: v(([0-9]+\.){2}[0-9]+).*/\1/p')-preview
31+
RELEASE_VERSION=$(cat $CHANGELOG_FILE | grep -E "^# Release: v(([0-9]+\.){2}[0-9]+).*" | head -n1 | sed -nr 's/.*Release: v(([0-9]+\.){2}[0-9]+).*/\1/p')
3232
3333
tmpfile=$(mktemp /tmp/commit-message.XXXXX)
3434
cat $CHANGELOG_FILE | awk 'BEGIN{C=0} $0 ~ /^# Release: v.*/ && C==1{C=2} $0 ~ /^# Release: v'"$RELEASE_VERSION"'.*/{C=1} C==1 {print $0}' > $tmpfile

.github/workflows/publish-to-vscode.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ on:
88
required: true
99
type: string
1010

11-
release:
12-
types: [published]
11+
# TODO: enable this trigger when we merge bundle-integ into main
12+
# release:
13+
# types: [published]
1314

1415
jobs:
1516
publish-to-vscode:
1617
runs-on: ubuntu-latest
1718
environment: Production
18-
if: endsWith(github.event.inputs.version, 'preview') || github.event_name == 'workflow_dispatch'
1919

2020
steps:
2121
- name: Use Node.js 18.x
@@ -49,7 +49,7 @@ jobs:
4949
- name: Publish to VS Code Marketplace
5050
run: |
5151
vsce -V
52-
vsce publish -p ${{ secrets.VSCE_TOKEN }} --packagePath databricks-*.vsix --pre-release
52+
vsce publish -p ${{ secrets.VSCE_TOKEN }} --packagePath databricks-*.vsix
5353
5454
env:
5555
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}

.github/workflows/release-pr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
id: create-changelog
5555
run: |
5656
TMPFILE=$(mktemp /tmp/tmpfile.XXXX)
57-
bash scripts/generate_changelog.sh ${{ inputs.extension_version }}-preview $TMPFILE
57+
bash scripts/generate_changelog.sh ${{ inputs.extension_version }} $TMPFILE
5858
5959
cat $TMPFILE >> $GITHUB_STEP_SUMMARY
6060
@@ -77,14 +77,14 @@ jobs:
7777
git checkout -b $BRANCH
7878
git add **/CHANGELOG.md **/package.json package.json **/NOTICE.md
7979
git status
80-
git commit -m "Changelog & version bump to ${{ inputs.extension_version }}-preview"
80+
git commit -m "Changelog & version bump to ${{ inputs.extension_version }}"
8181
git push origin HEAD
8282
echo "branch_name=$BRANCH" >> $GITHUB_OUTPUT
8383
8484
- name: Create PR
8585
if: ${{ inputs.extension_version != '0.0.0'}}
8686
run: |
87-
gh pr create -B bundle-integ -H ${{ steps.create-branch.outputs.branch_name }} --title "Release: v${{ inputs.extension_version }}-preview" --body-file ${{ steps.create-changelog.outputs.changelog_file }}
87+
gh pr create -B bundle-integ -H ${{ steps.create-branch.outputs.branch_name }} --title "Release: v${{ inputs.extension_version }}" --body-file ${{ steps.create-changelog.outputs.changelog_file }}
8888
rm ${{ steps.create-changelog.outputs.changelog_file }}
8989
env:
9090
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@databricks/databricks-vscode",
3-
"version": "2.3.4",
3+
"version": "2.4.0",
44
"private": true,
55
"workspaces": [
66
"packages/*"

packages/databricks-vscode-types/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Release: v2.4.0-preview
2+
3+
## packages/databricks-vscode-types
4+
5+
## (2024-08-26)
6+
17
# Release: v2.3.4-preview
28

39
## packages/databricks-vscode-types

packages/databricks-vscode-types/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@databricks/databricks-vscode-types",
3-
"version": "2.3.4",
3+
"version": "2.4.0",
44
"description": "Package with types and interfaces to develop extensions to the Databricks VSCode plugin",
55
"main": "index.js",
66
"types": "index.d.ts",

packages/databricks-vscode/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
# Release: v2.4.0
2+
3+
## packages/databricks-vscode
4+
5+
## (2024-08-26)
6+
7+
- Remove private preview warning
8+
- Bump CLI to 0.227.1
9+
110
# Release: v2.3.4-preview
211

312
## packages/databricks-vscode

packages/databricks-vscode/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "IDE support for Databricks",
55
"publisher": "databricks",
66
"license": "LicenseRef-LICENSE",
7-
"version": "2.3.4",
7+
"version": "2.4.0",
88
"engines": {
99
"vscode": "^1.86.0"
1010
},
@@ -897,7 +897,7 @@
897897
},
898898
"scripts": {
899899
"vscode:prepublish": "rm -rf out && yarn run package:compile && yarn run package:wrappers:write && yarn run package:jupyter-init-script:write && yarn run package:copy-webview-toolkit && yarn run generate-telemetry",
900-
"package": "vsce package --pre-release --baseContentUrl https://github.com/databricks/databricks-vscode/blob/${TAG:-bundle-integ}/packages/databricks-vscode --baseImagesUrl https://raw.githubusercontent.com/databricks/databricks-vscode/${TAG:-bundle-integ}/packages/databricks-vscode",
900+
"package": "vsce package --baseContentUrl https://github.com/databricks/databricks-vscode/blob/${TAG:-bundle-integ}/packages/databricks-vscode --baseImagesUrl https://raw.githubusercontent.com/databricks/databricks-vscode/${TAG:-bundle-integ}/packages/databricks-vscode",
901901
"package:linux:x64": "./scripts/package-vsix.sh linux-x64",
902902
"package:linux:arm64": "./scripts/package-vsix.sh linux-arm64",
903903
"package:darwin:x64": "./scripts/package-vsix.sh darwin-x64",
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<img src="./1.2/databricks-logo.png" alt="databricks-logo" width="100"/>
2+
3+
# Databricks Extension v2.4.0
4+
5+
## What's new?
6+
7+
- [Databricks Asset Bundles support](#dabs)
8+
- [Bundle configuration](#dabs-config)
9+
- [No environment variables in terminals](#no-env)
10+
11+
### <a id="dabs"></a> Databricks Asset Bundles support
12+
13+
The extension now supports [Databricks Asset Bundles](https://docs.databricks.com/en/dev-tools/bundles/index.html)! New features include:
14+
15+
- Easy authentication and configuration of your Databricks Asset Bundles through the Visual Studio Code UI, including **AuthType** profile selection.
16+
- A **Target** selector in the Databricks extension panel to quickly switch between bundle target environments.
17+
- The **Override Jobs cluster** in bundle option in the extension panel to enable easy cluster override.
18+
- A **Bundles Resource Explorer** view, which allows you to browse your bundle resources using the Visual Studio Code UI, deploy your local Databricks Asset Bundle’s resources to your remote Databricks workspace with a single click, and go directly to your deployed resources in your workspace from Visual Studio Code.
19+
- A **Bundles Variables View**, which enables you to browse and edit your bundle variables using the Visual Studio Code UI. See Bundle Variables View.
20+
21+
See [our documentation for more information](https://docs..databricks.com/dev-tools/vscode-ext/bundles.html).
22+
23+
### <a id="dabs-config"></a> Bundle configuration
24+
25+
The extension now requires a bundle configuration to be present in the project.
26+
27+
If you don't use Databricks Asset Bundles, the extension will ask you to "migrate" your project. This will only create a `databricks.yml` configuration file with your workspace url.
28+
29+
If you used our extension for a project before, we will migrate it automatically.
30+
31+
See [our documentation for more information](https://docs.databricks.com/dev-tools/vscode-ext/index.html#migrate-a-project-to-a-databricks-project).
32+
33+
### <a id="no-env"></a> No environment variables in terminals
34+
35+
The extension no longer injects databricks environment variables in VSCode terminals. If you were relying on this feature, you will need to manually load the `.databricks/.databricks.env` file in your terminal before running any commands that require those variables.

packages/databricks-vscode/scripts/package-vsix.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ if [ $ARCH != "win32-arm64" ]; then
5858
fi
5959

6060
yarn run prettier package.json --write
61-
TAG="release-v$(cat package.json | jq -r .version)-preview" yarn run package -t $VSXI_ARCH
61+
TAG="release-v$(cat package.json | jq -r .version)" yarn run package -t $VSXI_ARCH
6262

6363
git checkout -- package.json
6464

0 commit comments

Comments
 (0)