|
|
@@ -31,8 +31,9 @@ jobs:
|
|
|
git config user.name github-actions
|
|
|
git config user.email [email protected]
|
|
|
- run: |
|
|
|
+ npm install -g vsce
|
|
|
npm run co:login
|
|
|
- latest_published_version=$(npm show @roo-dev/roo-cline version)
|
|
|
+ latest_published_version=$(npm show roo-cline version)
|
|
|
current_package_version=$(node -p "require('./package.json').version")
|
|
|
echo "Latest published version: $latest_published_version"
|
|
|
echo "Current package version: $current_package_version"
|
|
|
@@ -40,6 +41,9 @@ jobs:
|
|
|
echo "Latest version is already published to NPM"
|
|
|
else
|
|
|
npm install
|
|
|
+ cd webview-ui
|
|
|
+ npm install
|
|
|
+ cd ..
|
|
|
npm run vsix
|
|
|
npm publish
|
|
|
echo "Successfully published to NPM"
|