Skip to content

Commit ed7d5fe

Browse files
actions fuck up
1 parent 0b9d302 commit ed7d5fe

File tree

1 file changed

+85
-84
lines changed

1 file changed

+85
-84
lines changed

.github/workflows/main.yaml

+85-84
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Production Deployment
1+
name: Prod Deployment
22

33
env:
44
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
@@ -8,86 +8,87 @@ on:
88
push:
99
branches:
1010
- main
11-
jobs:
12-
Setup:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- uses: actions/checkout@v3
16-
17-
- uses: actions/setup-node@v3
18-
with:
19-
node-version: 20
20-
21-
- name: Configure Yarn
22-
run: |
23-
yarn config set '@tiptap-pro:registry' 'https://registry.tiptap.dev'
24-
yarn config set '//registry.tiptap.dev/:_authToken' '${{ secrets.TIPTAP_PRO_TOKEN }}'
25-
26-
- name: Get yarn cache directory path
27-
id: yarn-cache-dir-path
28-
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
29-
30-
- uses: actions/cache@v3
31-
id: yarn-cache
32-
with:
33-
path: |
34-
${{ steps.yarn-cache-dir-path.outputs.dir }}
35-
node_modules
36-
.next
37-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
38-
restore-keys: |
39-
${{ runner.os }}-yarn-
40-
41-
- name: Install Dependencies
42-
run: yarn install
43-
44-
Check:
45-
needs: Setup
46-
runs-on: ubuntu-latest
47-
steps:
48-
- uses: actions/checkout@v3
49-
50-
- uses: actions/setup-node@v3
51-
with:
52-
node-version: 20
53-
54-
- name: Configure Yarn
55-
run: |
56-
yarn config set '@tiptap-pro:registry' 'https://registry.tiptap.dev'
57-
yarn config set '//registry.tiptap.dev/:_authToken' '${{ secrets.TIPTAP_PRO_TOKEN }}'
58-
59-
- name: Get yarn cache directory path
60-
id: yarn-cache-dir-path
61-
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
62-
63-
- uses: actions/cache@v3
64-
id: yarn-cache
65-
with:
66-
path: |
67-
${{ steps.yarn-cache-dir-path.outputs.dir }}
68-
node_modules
69-
.next
70-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
71-
restore-keys: |
72-
${{ runner.os }}-yarn-
73-
74-
- name: Type Check
75-
run: yarn run tsc
76-
77-
- name: Lint
78-
run: yarn run lint
79-
80-
Deploy:
81-
needs: Check
82-
runs-on: ubuntu-latest
83-
if: "!contains(github.event.head_commit.message, '[skip ci]')"
84-
steps:
85-
- name: Checkout
86-
uses: actions/checkout@v2
87-
- name: Deploy to Vercel Action
88-
uses: BetaHuhn/deploy-to-vercel-action@v1
89-
with:
90-
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
91-
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
92-
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
93-
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
11+
12+
jobs:
13+
Setup:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- uses: actions/setup-node@v3
19+
with:
20+
node-version: 20
21+
22+
- name: Configure Yarn
23+
run: |
24+
yarn config set '@tiptap-pro:registry' 'https://registry.tiptap.dev'
25+
yarn config set '//registry.tiptap.dev/:_authToken' '${{ secrets.TIPTAP_PRO_TOKEN }}'
26+
27+
- name: Get yarn cache directory path
28+
id: yarn-cache-dir-path
29+
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
30+
31+
- uses: actions/cache@v3
32+
id: yarn-cache
33+
with:
34+
path: |
35+
${{ steps.yarn-cache-dir-path.outputs.dir }}
36+
node_modules
37+
.next
38+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
39+
restore-keys: |
40+
${{ runner.os }}-yarn-
41+
42+
- name: Install Dependencies
43+
run: yarn install
44+
45+
Check:
46+
needs: Setup
47+
runs-on: ubuntu-latest
48+
steps:
49+
- uses: actions/checkout@v3
50+
51+
- uses: actions/setup-node@v3
52+
with:
53+
node-version: 20
54+
55+
- name: Configure Yarn
56+
run: |
57+
yarn config set '@tiptap-pro:registry' 'https://registry.tiptap.dev'
58+
yarn config set '//registry.tiptap.dev/:_authToken' '${{ secrets.TIPTAP_PRO_TOKEN }}'
59+
60+
- name: Get yarn cache directory path
61+
id: yarn-cache-dir-path
62+
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
63+
64+
- uses: actions/cache@v3
65+
id: yarn-cache
66+
with:
67+
path: |
68+
${{ steps.yarn-cache-dir-path.outputs.dir }}
69+
node_modules
70+
.next
71+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
72+
restore-keys: |
73+
${{ runner.os }}-yarn-
74+
75+
- name: Type Check
76+
run: yarn run tsc
77+
78+
- name: Lint
79+
run: yarn run lint
80+
81+
Deploy:
82+
needs: Check
83+
runs-on: ubuntu-latest
84+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
85+
steps:
86+
- name: Checkout
87+
uses: actions/checkout@v2
88+
- name: Deploy to Vercel Action
89+
uses: BetaHuhn/deploy-to-vercel-action@v1
90+
with:
91+
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
92+
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
93+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
94+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}

0 commit comments

Comments
 (0)