Skip to content

Commit a47c99d

Browse files
committed
feat: migrate to ts
1 parent 8cdab4e commit a47c99d

26 files changed

Lines changed: 6662 additions & 12736 deletions

.eslintrc.json

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
github: [amondnet]
44
patreon: amond
5-
open_collective: #amond
5+
open_collective: # amond
66
ko_fi: # Replace with a single Ko-fi username
77
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
88
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
push:
7+
branches:
8+
- master
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
env:
16+
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
17+
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: pnpm/action-setup@v4
21+
name: Install pnpm
22+
with:
23+
version: 10
24+
run_install: false
25+
26+
- name: Install Node.js
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version-file: .nvmrc
30+
cache: pnpm
31+
32+
- name: Install dependencies
33+
run: pnpm install --frozen-lockfile
34+
35+
- name: Lint
36+
run: pnpm lint
37+
38+
- name: Test
39+
run: pnpm test

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
deploy:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v4
1313
- uses: ./
1414
id: vercel-action
1515
with:

.github/workflows/example-angular.yml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,26 @@ jobs:
99
angular:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
13-
- uses: actions/cache@v1
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- uses: pnpm/action-setup@v4
16+
name: Install pnpm
17+
with:
18+
version: 10
19+
run_install: false
20+
21+
- name: Install Node.js
22+
uses: actions/setup-node@v4
1423
with:
15-
path: ~/.npm
16-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
17-
restore-keys: |
18-
${{ runner.os }}-node-
19-
- name: build
24+
node-version-file: .nvmrc
25+
cache: pnpm
26+
27+
- name: Build
2028
run: |
2129
cd example/angular
22-
npm ci
23-
npx ng build --prod
30+
pnpm install --frozen-lockfile
31+
pnpm dlx ng build --prod
2432
2533
- uses: ./
2634
id: vercel-action-staging

.github/workflows/example-express-basic-auth.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ on:
55
- master
66
pull_request_target:
77

8-
98
jobs:
109
basic-auth:
1110
runs-on: ubuntu-latest
1211
steps:
13-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v4
1413
- uses: ./
1514
id: now-deployment-staging
1615
if: github.event_name == 'pull_request_target'
@@ -28,5 +27,5 @@ jobs:
2827
vercel-token: ${{ secrets.VERCEL_TOKEN }}
2928
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
3029
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID_AUTH }}
31-
vercel-args: '--prod'
30+
vercel-args: --prod
3231
working-directory: example/express-basic-auth

.github/workflows/example-nextjs.yml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,32 @@ jobs:
1010
static:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
14-
- run: |
15-
npm ci
16-
npx vercel pull --yes --token=${VERCEL_TOKEN}
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- uses: pnpm/action-setup@v4
17+
name: Install pnpm
18+
with:
19+
version: 10
20+
run_install: false
21+
22+
- name: Install Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version-file: .nvmrc
26+
cache: pnpm
27+
28+
- name: Install dependencies
29+
run: pnpm install --frozen-lockfile
30+
31+
- run: pnpm dlx vercel pull --yes --token=${VERCEL_TOKEN}
1732
working-directory: example/nextjs
1833
env:
1934
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_NEXTJS }}
2035
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
2136
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
2237
- run: |
23-
npx vercel build
38+
pnpm dlx vercel build
2439
if: github.event_name == 'pull_request_target'
2540
working-directory: example/nextjs
2641
env:
@@ -51,7 +66,7 @@ jobs:
5166
env:
5267
REF: ${{ github.ref }}
5368
- run: |
54-
npx vercel build --prod
69+
pnpm dlx vercel build --prod
5570
if: github.event_name == 'push'
5671
working-directory: example/nextjs
5772
env:

.github/workflows/example-scope.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@ on:
55
- master
66
pull_request_target:
77

8-
9-
108
jobs:
119
static:
1210
runs-on: ubuntu-latest
1311
steps:
14-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v4
1513
- uses: ./
1614
id: now-deployment-staging
1715
if: github.event_name == 'pull_request_target'
@@ -30,6 +28,6 @@ jobs:
3028
vercel-token: ${{ secrets.VERCEL_TOKEN }}
3129
vercel-org-id: ${{ secrets.VERCEL_ORG_ID_TEAM_SCOPE }}
3230
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID_TEAM_SCOPE }}
33-
vercel-args: '--prod'
31+
vercel-args: --prod
3432
scope: ${{ secrets.VERCEL_SCOPE }}
3533
working-directory: example/team-scope

.github/workflows/example-static.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
static:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
1414
- uses: ./
1515
id: now-deployment-staging
1616
if: github.event_name == 'pull_request_target'

.github/workflows/test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
- master
66
pull_request_target:
77

8-
98
jobs:
109
deploy:
1110
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)