mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Updates from main
This commit is contained in:
parent
8e9218cfbb
commit
ea6eae7966
3 changed files with 1 additions and 71 deletions
1
.github/workflows/marketplace-publish.yml
vendored
1
.github/workflows/marketplace-publish.yml
vendored
|
|
@ -6,7 +6,6 @@ on:
|
|||
|
||||
jobs:
|
||||
publish-extension:
|
||||
if: ${{ github.actor == 'R00-B0T'}}
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.actor == 'R00-B0T'}}
|
||||
steps:
|
||||
|
|
|
|||
70
.github/workflows/release.yml
vendored
70
.github/workflows/release.yml
vendored
|
|
@ -1,70 +0,0 @@
|
|||
name: Release
|
||||
run-name: Release ${{ github.event_name == 'push' && '- Create Changeset PR' || '- Approve & Merge Changeset PR' }}
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [closed]
|
||||
pull_request_target:
|
||||
|
||||
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
||||
|
||||
env:
|
||||
AWS_REGION: us-east-1
|
||||
|
||||
jobs:
|
||||
release:
|
||||
name: Release
|
||||
if: >
|
||||
github.event_name == 'pull_request' &&
|
||||
github.event.pull_request.merged == true &&
|
||||
github.event.pull_request.base.ref == 'main'
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
steps:
|
||||
- name: Checkout Repo
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Setup Node.js 20
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
|
||||
- name: NPM Install
|
||||
run: |
|
||||
npm run install:all
|
||||
npm run build
|
||||
|
||||
- name: Changeset Pull Request
|
||||
id: changesets
|
||||
uses: changesets/action@v1
|
||||
with:
|
||||
commit: "changeset version bump"
|
||||
title: "Changeset version bump"
|
||||
version: npm run version-packages # This performs the changeset version bump
|
||||
# publish: npm run publish # Revisit possible refactor along with npm-publish.yml
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.CROSS_REPO_ACCESS_TOKEN }}
|
||||
|
||||
auto-approve-and-merge:
|
||||
name: Auto approve and merge Bump version PRs
|
||||
runs-on: ubuntu-latest
|
||||
if: github.actor == 'R00-B0T' && contains(github.event.pull_request.title, 'Changeset version bump')
|
||||
permissions:
|
||||
pull-requests: write
|
||||
|
||||
steps:
|
||||
- name: Checkout Repo
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
token: ${{ secrets.CROSS_REPO_ACCESS_TOKEN }}
|
||||
- name: Auto approve PR
|
||||
uses: hmarr/auto-approve-action@v4
|
||||
with:
|
||||
review-message: "I'm approving since it's a bump version PR"
|
||||
- name: Enable automerge on PR
|
||||
run: gh pr merge --squash --auto ${{ github.event.pull_request.number }}
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.CROSS_REPO_ACCESS_TOKEN }}
|
||||
|
|
@ -150,6 +150,7 @@
|
|||
"test:webview": "cd webview-ui && npm run test",
|
||||
"publish:marketplace": "vsce publish",
|
||||
"publish": "npm run build && changeset publish && npm install --package-lock-only",
|
||||
"prepare": "husky",
|
||||
"version-packages": "changeset version && npm install --package-lock-only",
|
||||
"vscode:prepublish": "npm run package",
|
||||
"vsix": "mkdir -p bin && npx vsce package --out bin",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue