Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions .eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

github: [amondnet]
patreon: amond
open_collective: #amond
open_collective: # amond
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI
on:
pull_request:
branches:
- master
push:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 10
run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: pnpm

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Lint
run: pnpm lint

- name: Test
run: pnpm test

Check failure on line 39 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / build

Newline required at end of file but not found
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: ./
id: vercel-action
with:
Expand Down
26 changes: 17 additions & 9 deletions .github/workflows/example-angular.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,26 @@ jobs:
angular:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v1
- name: Checkout
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 10
run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: build
node-version-file: .nvmrc
cache: pnpm

- name: Build
run: |
cd example/angular
npm ci
npx ng build --prod
pnpm install --frozen-lockfile
pnpm dlx ng build --prod

- uses: ./
id: vercel-action-staging
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/example-express-basic-auth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ on:
- master
pull_request_target:


jobs:
basic-auth:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: ./
id: now-deployment-staging
if: github.event_name == 'pull_request_target'
Expand All @@ -28,5 +27,5 @@ jobs:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID_AUTH }}
vercel-args: '--prod'
vercel-args: --prod
working-directory: example/express-basic-auth
27 changes: 21 additions & 6 deletions .github/workflows/example-nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,32 @@ jobs:
static:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
npm ci
npx vercel pull --yes --token=${VERCEL_TOKEN}
- name: Checkout
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 10
run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: pnpm

- name: Install dependencies
run: pnpm install --frozen-lockfile

- run: pnpm dlx vercel pull --yes --token=${VERCEL_TOKEN}
working-directory: example/nextjs
env:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_NEXTJS }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
- run: |
npx vercel build
pnpm dlx vercel build
if: github.event_name == 'pull_request_target'
working-directory: example/nextjs
env:
Expand Down Expand Up @@ -51,7 +66,7 @@ jobs:
env:
REF: ${{ github.ref }}
- run: |
npx vercel build --prod
pnpm dlx vercel build --prod
if: github.event_name == 'push'
working-directory: example/nextjs
env:
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/example-scope.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@ on:
- master
pull_request_target:



jobs:
static:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: ./
id: now-deployment-staging
if: github.event_name == 'pull_request_target'
Expand All @@ -30,6 +28,6 @@ jobs:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID_TEAM_SCOPE }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID_TEAM_SCOPE }}
vercel-args: '--prod'
vercel-args: --prod
scope: ${{ secrets.VERCEL_SCOPE }}
working-directory: example/team-scope
2 changes: 1 addition & 1 deletion .github/workflows/example-static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
static:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: ./
id: now-deployment-staging
if: github.event_name == 'pull_request_target'
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
- master
pull_request_target:


jobs:
deploy:
runs-on: ubuntu-latest
Expand Down
8 changes: 0 additions & 8 deletions .prettierrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ npm run package # Build the action with ncc (outputs to dist/)
2. **Project Linking**: The `.vercel/` directory with org/project IDs must be committed
3. **Build Process**: Builds should happen in GitHub Actions, not Vercel
4. **Backward Compatibility**: Maintain support for deprecated "zeit-" prefixed inputs
5. **Error Handling**: Use proper exit codes and clear error messages for CI/CD integration
5. **Error Handling**: Use proper exit codes and clear error messages for CI/CD integration
2 changes: 0 additions & 2 deletions DEVELOP.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ git add dist
git tag --new-release
```


# Changelog

```bash
github_changelog_generator
```

Loading
Loading