Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,19 @@ jobs:
git config user.name github-actions
git config user.email github-actions@github.com
- run: |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using a Node.js script with async/await for handling asynchronous operations instead of shell commands. This makes the code more readable and maintainable. Refer to our Development Standards: https://www.notion.so/Development-Standards-59febcf8ead647fd9c2ec3f60c22f3df?pvs=4#11869ad2d581809f9af3fdba09412ef6

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"
if [ "$latest_published_version" == "$current_package_version" ]; then
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"
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file modified scripts/codeartifact-login.sh
100644 → 100755
Empty file.