mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 04:11:10 -05:00
33 lines
916 B
YAML
33 lines
916 B
YAML
name: Publish Extension
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
publish-extension:
|
|
runs-on: ubuntu-latest
|
|
if: ${{ github.actor == 'R00-B0T'}}
|
|
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 publish:marketplace
|
|
echo "Successfully published version $current_package_version to VS Code Marketplace"
|