File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 99jobs :
1010 build :
1111 runs-on : ubuntu-latest
12+ env :
13+ NEXT_PUBLIC_CONTENTFUL_SPACE_ID : ${{ secrets.CONTENTFUL_SPACE_ID }}
14+ NEXT_PUBLIC_CONTENTFUL_ACCESS_TOKEN : ${{ secrets.CONTENTFUL_ACCESS_TOKEN }}
1215
1316 steps :
1417 - name : Checkout code
1518 uses : actions/checkout@v4
1619
20+ - name : Cache node modules
21+ uses : actions/cache@v3
22+ with :
23+ path : ~/.npm
24+ key : ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
25+ restore-keys : |
26+ ${{ runner.os }}-node-
27+
1728 - name : Set up Node.js
1829 uses : actions/setup-node@v4
1930 with :
2233 - name : Install dependencies
2334 run : npm install
2435
36+ - name : Type check
37+ run : npx tsc --noEmit
38+
2539 - name : Run build
2640 run : npm run build
2741
2842 - name : Run linter
2943 run : npm run lint
30-
You can’t perform that action at this time.
0 commit comments