1212 - name : Checkout the repository
1313 uses : actions/checkout@v4
1414
15+ - name : Enable Corepack
16+ run : corepack enable
17+
1518 - name : Get Yarn cache directory path
1619 id : yarn-cache-dir-path
17- run : echo "::set-output name=dir::$(yarn cache dir )"
20+ run : echo "::set-output name=dir::$(yarn config get cacheFolder )"
1821
1922 - name : Setup Yarn cache
2023 uses : actions/cache@v4
@@ -27,29 +30,33 @@ jobs:
2730 - name : Install dependencies
2831 run : yarn install --frozen-lockfile
2932
30- - name : TypeScript check
31- run : yarn run typecheck
33+ # - name: TypeScript check
34+ # run: yarn run typecheck
3235
33- - name : ESLint check
34- run : yarn run lint
36+ # - name: ESLint check
37+ # run: yarn run lint
3538
36- - name : Build the project
37- run : yarn run build
39+ # - name: Build the project
40+ # run: yarn run build
3841
39- - name : Upload build artifacts
40- uses : actions/upload-artifact@v4
41- with :
42- name : build-artifacts
43- retention-days : 7
44- path : build/
42+ # - name: Upload build artifacts
43+ # uses: actions/upload-artifact@v4
44+ # with:
45+ # name: build-artifacts
46+ # retention-days: 7
47+ # path: |
48+ # packages/*/dist/
4549
4650 summary :
4751 runs-on : ubuntu-latest
48- if : ${{ !cancelled() && secrets.WEBHOOK_DISCORD != '' }}
4952 needs : [ verify_and_build ]
53+ if : ${{ always() }}
54+ env :
55+ HAS_WEBHOOK : ${{ secrets.WEBHOOK_DISCORD != '' }}
5056 steps :
5157
5258 - name : Trigger Webhook
59+ if : ${{ env.HAS_WEBHOOK == 'true' }}
5360 uses : CalmDownVal/webhook-summary@v1
5461 with :
5562 token : ${{ github.token }}
0 commit comments