Skip to content

Commit

Permalink
Temp revert name change of extention package
Browse files Browse the repository at this point in the history
  • Loading branch information
ajthinking committed Sep 28, 2024
1 parent 5dbc9f6 commit ffaa873
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 25 deletions.
22 changes: 3 additions & 19 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ jobs:
- name: Check VS Code extension version
id: check_vscode
run: |
PACKAGE_VERSION=$(node -p "require('./packages/vscode-extension/package.json').version")
PACKAGE_VERSION=$(node -p "require('./packages/ds-ext/package.json').version")
echo "Version: $PACKAGE_VERSION"
HTTP_STATUS=$(curl -X POST \
-H "Accept: */*;api-version=7.2-preview.1;excludeUrls=true" \
Expand Down Expand Up @@ -195,34 +195,18 @@ jobs:
run: |
yarn build
- name: Modify package.json for vsce
if: env.VERSION_EXISTS == 'false'
run: |
cd packages/vscode-extension
# Backup the original package.json
cp package.json package.json.bak
# Use jq to modify the name field
jq '.name = "ds-ext" | .private = false' package.json > package.tmp.json
mv package.tmp.json package.json
- name: Install vsce
if: env.VERSION_EXISTS == 'false'
run: npm install -g vsce

- name: Build VS Code Extension
if: env.VERSION_EXISTS == 'false'
run: |
cd packages/vscode-extension
cd packages/ds-ext
yarn build
- name: Publish VS Code Extension
if: env.VERSION_EXISTS == 'false'
run: |
cd packages/vscode-extension
cd packages/ds-ext
vsce publish --pat ${{ secrets.VSCE_TOKEN }} --yarn
- name: Restore original package.json
if: env.VERSION_EXISTS == 'false'
run: |
cd packages/vscode-extension
mv package.json.bak package.json
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}/packages/vscode-extension"
"--extensionDevelopmentPath=${workspaceFolder}/packages/ds-ext"
],
"outFiles": [
"${workspaceFolder}/packages/vscode-extension/dist/**/*.js"
"${workspaceFolder}/packages/ds-ext/dist/**/*.js"
],
"preLaunchTask": "${defaultBuildTask}"
}
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"packages/nodejs",
"packages/openai",
"packages/hubspot",
"packages/vscode-extension",
"packages/ds-ext",
"packages/private/*"
],
"scripts": {
Expand All @@ -25,10 +25,10 @@
"lint": "eslint .",
"lint:fix": "eslint '**/*.{js,jsx,ts,tsx}' --fix --no-cache",
"postinstall": "[ \"$CI\" = \"true\" ] || husky install",
"release-core": "yarn workspace @data-story/core run release && yarn release-ui && yarn release-nodejs && yarn release-vscode-extension",
"release-core": "yarn workspace @data-story/core run release && yarn release-ui && yarn release-nodejs && yarn release-ds-ext",
"release-ui": "yarn workspace @data-story/ui run release",
"release-nodejs": "yarn workspace @data-story/nodejs run release",
"release-vscode-extension": "yarn workspace @data-story/vscode-extension run release",
"release-ds-ext": "yarn workspace ds-ext run release",
"ci:test": "turbo test --filter=@data-story/core --filter=@data-story/ui --filter=@data-story/docs && yarn cy:component && yarn ci:e2e",
"ci:e2e": "start-server-and-test 'yarn dev -- --port 3009' 3009 'cy:e2e' ",
"core:test": "turbo test --filter=@data-story/core",
Expand Down
2 changes: 1 addition & 1 deletion packages/vscode-extension/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@data-story/vscode-extension",
"name": "ds-ext",
"displayName": "ds-ext",
"description": "",
"version": "0.0.97",
Expand Down

0 comments on commit ffaa873

Please sign in to comment.