Fix Package Publish Workflow (#11)

* fixing access to codeartifact login script

* adjust namespace to match other Roo packages

* addling line to install vsce to Github action

* removing namespace as it is not valid for extension name

* version bump

* updating package-lock and doing full install for publish action

* update workflow package install steps

* update package install steps
This commit is contained in:
ColemanRoo
2024-11-19 21:27:58 -06:00
committed by GitHub
parent ef87bc0385
commit e55696e247
3 changed files with 7 additions and 3 deletions

View File

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

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "roo-cline", "name": "roo-cline",
"version": "2.0.1", "version": "2.0.2",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "roo-cline", "name": "roo-cline",
"version": "2.0.1", "version": "2.0.2",
"dependencies": { "dependencies": {
"@anthropic-ai/bedrock-sdk": "^0.10.2", "@anthropic-ai/bedrock-sdk": "^0.10.2",
"@anthropic-ai/sdk": "^0.26.0", "@anthropic-ai/sdk": "^0.26.0",

0
scripts/codeartifact-login.sh Normal file → Executable file
View File