Skip to content

Commit a89588c

Browse files
ci: deploy manually to canary env from main (#2627)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent ebcfc01 commit a89588c

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
on:
2+
push:
3+
branches: [main]
4+
5+
permissions:
6+
contents: read
7+
8+
concurrency:
9+
group: deploy-canary-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
deploy-canary:
14+
if: github.repository == 'npmx-dev/npmx.dev'
15+
name: 🚀 Deploy to canary (main.npmx.dev)
16+
runs-on: ubuntu-24.04-arm
17+
steps:
18+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
19+
20+
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1
21+
with:
22+
node-version: lts/*
23+
run-install: false
24+
25+
- run: vp install -g vercel
26+
- run: vercel deploy --target=canary
27+
env:
28+
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
29+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
30+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}

0 commit comments

Comments
 (0)