Skip to content

Commit d5bdcb0

Browse files
committed
chore: disable automatic deploy workflows
1 parent 96d6e43 commit d5bdcb0

3 files changed

Lines changed: 51 additions & 63 deletions

File tree

Lines changed: 44 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,51 @@
11
name: Nightly Publish
22

33
on:
4-
push:
5-
branches: [main]
6-
workflow_dispatch: # Allows manual triggering.
4+
# Temporarily disabled automatic nightly publishes on pushes to main.
5+
workflow_dispatch: # Allows manual triggering.
76

87
jobs:
9-
publish-nightly:
10-
runs-on: ubuntu-latest
8+
publish-nightly:
9+
runs-on: ubuntu-latest
1110

12-
permissions:
13-
contents: read # No tags pushed → read is enough.
11+
permissions:
12+
contents: read # No tags pushed → read is enough.
1413

15-
steps:
16-
- name: Checkout code
17-
uses: actions/checkout@v4
18-
with:
19-
fetch-depth: 0
20-
- name: Setup Node.js and pnpm
21-
uses: ./.github/actions/setup-node-pnpm
22-
with:
23-
install-args: '--frozen-lockfile'
24-
- name: Forge numeric Nightly version
25-
id: version
26-
env:
27-
RUN_NUMBER: ${{ github.run_number }}
28-
run: echo "number=$(( 5500 + ${RUN_NUMBER} ))" >> $GITHUB_OUTPUT
29-
- name: Patch package.json version
30-
env:
31-
VERSION_NUMBER: ${{ steps.version.outputs.number }}
32-
run: |
33-
node <<'EOF'
34-
const fs = require('fs');
35-
const path = require('path');
36-
const pkgPath = path.join(__dirname, 'apps', 'vscode-nightly', 'package.nightly.json');
37-
const pkg = JSON.parse(fs.readFileSync(pkgPath,'utf8'));
38-
const [maj, min] = pkg.version.split('.');
39-
pkg.version = `${maj}.${min}.${process.env.VERSION_NUMBER}`;
40-
fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2));
41-
console.log(`🔖 Nightly version set to ${pkg.version}`);
42-
EOF
43-
- name: Build VSIX
44-
run: pnpm vsix:nightly # Produces bin/roo-code-nightly-0.0.[count].vsix
45-
- name: Publish to VS Code Marketplace
46-
env:
47-
VSCE_PAT: ${{ secrets.VSCE_PAT }}
48-
run: npx vsce publish --packagePath "bin/$(/bin/ls bin | head -n1)"
49-
- name: Publish to Open VSX Registry
50-
env:
51-
OVSX_PAT: ${{ secrets.OVSX_PAT }}
52-
run: npx ovsx publish "bin/$(ls bin | head -n1)"
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
- name: Setup Node.js and pnpm
20+
uses: ./.github/actions/setup-node-pnpm
21+
with:
22+
install-args: "--frozen-lockfile"
23+
- name: Forge numeric Nightly version
24+
id: version
25+
env:
26+
RUN_NUMBER: ${{ github.run_number }}
27+
run: echo "number=$(( 5500 + ${RUN_NUMBER} ))" >> $GITHUB_OUTPUT
28+
- name: Patch package.json version
29+
env:
30+
VERSION_NUMBER: ${{ steps.version.outputs.number }}
31+
run: |
32+
node <<'EOF'
33+
const fs = require('fs');
34+
const path = require('path');
35+
const pkgPath = path.join(__dirname, 'apps', 'vscode-nightly', 'package.nightly.json');
36+
const pkg = JSON.parse(fs.readFileSync(pkgPath,'utf8'));
37+
const [maj, min] = pkg.version.split('.');
38+
pkg.version = `${maj}.${min}.${process.env.VERSION_NUMBER}`;
39+
fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2));
40+
console.log(`🔖 Nightly version set to ${pkg.version}`);
41+
EOF
42+
- name: Build VSIX
43+
run: pnpm vsix:nightly # Produces bin/roo-code-nightly-0.0.[count].vsix
44+
- name: Publish to VS Code Marketplace
45+
env:
46+
VSCE_PAT: ${{ secrets.VSCE_PAT }}
47+
run: npx vsce publish --packagePath "bin/$(/bin/ls bin | head -n1)"
48+
- name: Publish to Open VSX Registry
49+
env:
50+
OVSX_PAT: ${{ secrets.OVSX_PAT }}
51+
run: npx ovsx publish "bin/$(ls bin | head -n1)"

‎.github/workflows/website-deploy.yml‎

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
name: Deploy roocode.com
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
paths:
8-
- 'apps/web-roo-code/**'
4+
# Temporarily disabled automatic production website deploys.
95
workflow_dispatch:
106

117
concurrency:
@@ -25,11 +21,11 @@ jobs:
2521
- name: Check if VERCEL_TOKEN exists
2622
id: check
2723
run: |
28-
if [ -n "${{ secrets.VERCEL_TOKEN }}" ]; then
29-
echo "has-vercel-token=true" >> $GITHUB_OUTPUT
30-
else
31-
echo "has-vercel-token=false" >> $GITHUB_OUTPUT
32-
fi
24+
if [ -n "${{ secrets.VERCEL_TOKEN }}" ]; then
25+
echo "has-vercel-token=true" >> $GITHUB_OUTPUT
26+
else
27+
echo "has-vercel-token=false" >> $GITHUB_OUTPUT
28+
fi
3329
3430
deploy:
3531
runs-on: ubuntu-latest

‎.github/workflows/website-preview.yml‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
11
name: Preview roocode.com
22

33
on:
4-
push:
5-
branches-ignore:
6-
- main
7-
paths:
8-
- "apps/web-roo-code/**"
9-
pull_request:
10-
paths:
11-
- "apps/web-roo-code/**"
4+
# Temporarily disabled automatic preview website deploys.
125
workflow_dispatch:
136

147
concurrency:

0 commit comments

Comments
 (0)