mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 04:11:10 -05:00
Functionality to publish extension to marketplace (#19)
Remove upload to CodeArtifact
This commit is contained in:
4
.github/CODEOWNERS
vendored
Normal file
4
.github/CODEOWNERS
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
# These owners will be the default owners for everything in the repo
|
||||
* @stea9499
|
||||
* @ColemanRoo
|
||||
* @mrubens
|
||||
32
.github/workflows/marketplace-publish.yml
vendored
Normal file
32
.github/workflows/marketplace-publish.yml
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
name: Publish Extension
|
||||
on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
publish-extension:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- run: |
|
||||
git config user.name github-actions
|
||||
git config user.email github-actions@github.com
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
npm install -g vsce ovsx
|
||||
npm install
|
||||
cd webview-ui
|
||||
npm install
|
||||
cd ..
|
||||
- name: Package and Publish Extension
|
||||
env:
|
||||
VSCE_PAT: ${{ secrets.VSCE_PAT }}
|
||||
run: |
|
||||
current_package_version=$(node -p "require('./package.json').version")
|
||||
npm run vsix
|
||||
npm run publish:marketplace
|
||||
echo "Successfully published version $current_package_version to VS Code Marketplace"
|
||||
50
.github/workflows/npm-publish.yml
vendored
50
.github/workflows/npm-publish.yml
vendored
@@ -1,50 +0,0 @@
|
||||
name: Publish to NPM
|
||||
on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
AWS_REGION: us-east-1
|
||||
|
||||
jobs:
|
||||
publish-npm:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- id: install-aws-cli
|
||||
uses: unfor19/install-aws-cli-action@v1
|
||||
with:
|
||||
version: 2 # default
|
||||
verbose: false # default
|
||||
arch: amd64 # allowed values: amd64, arm64
|
||||
- name: Configure AWS Credentials
|
||||
uses: aws-actions/configure-aws-credentials@v1-node16
|
||||
with:
|
||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
aws-region: ${{ env.AWS_REGION }}
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- run: |
|
||||
git config user.name github-actions
|
||||
git config user.email github-actions@github.com
|
||||
- run: |
|
||||
npm install -g vsce
|
||||
npm run co:login
|
||||
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"
|
||||
fi
|
||||
Reference in New Issue
Block a user