File tree Expand file tree Collapse file tree
guides/internationalization Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,13 +17,13 @@ jobs:
1717 container :
1818 image : node:22-slim
1919 steps :
20- - name : Checkout
21- uses : actions/checkout@v4
20+ - name : Checkout Repo
21+ uses : actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98
22+ with :
23+ fetch-depth : 1
2224 - name : pnpm setup
2325 uses : pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
24- - name : Install packages
25- run : pnpm install --frozen-lockfile
2626 - name : Run Lint
27- run : pnpm lint
27+ run : pnpm dlx @biomejs/biome@2.3.11 check .
2828 env :
2929 SKIP_ENV_VALIDATION : true
Original file line number Diff line number Diff line change 1717 container :
1818 image : node:22-slim
1919 steps :
20- - name : Checkout
21- uses : actions/checkout@v4
20+ - name : Checkout Repo
21+ uses : actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98
22+ with :
23+ fetch-depth : 1
24+ - name : pnpm setup
25+ uses : pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
2226 - name : Check for pinned dependencies
23- run : npx tsx ./scripts/check-dependency-versions.ts
27+ run : pnpm dlx tsx@4.21.0 ./scripts/check-dependency-versions.ts
Original file line number Diff line number Diff line change @@ -15,20 +15,30 @@ jobs:
1515 image : node:22
1616 steps :
1717 - name : Checkout Repo
18- uses : actions/checkout@v4
18+ uses : actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98
19+ with :
20+ fetch-depth : 2
21+ - run : git config --global --add safe.directory $GITHUB_WORKSPACE
1922 - name : pnpm setup
2023 uses : pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
2124 - name : Install packages
22- run : pnpm install --frozen-lockfile
23- - name : Run Build
24- run : pnpm turbo run build --filter=./packages/*
25+ run : pnpm install --frozen-lockfile --prefer-offline
2526 - name : Find changed packages
2627 id : changed_packages
2728 uses : tj-actions/changed-files@6da3c88b60ebf09464ada9b06fba5b6f2d34bb94
2829 with :
2930 files : packages/**
3031 dir_names : true
3132 dir_names_max_depth : 2
33+ - name : Run Build
34+ if : steps.changed_packages.outputs.all_changed_and_modified_files != ''
35+ run : |
36+ pnpm build --filter=[HEAD^1]
37+ env :
38+ SPAM_ASSASSIN_HOST : ${{ secrets.SPAM_ASSASSIN_HOST }}
39+ SPAM_ASSASSIN_PORT : ${{ secrets.SPAM_ASSASSIN_PORT }}
40+ TURBO_TOKEN : ${{ secrets.TURBO_TOKEN }}
41+ TURBO_TEAM : ${{ secrets.TURBO_TEAM }}
3242 - name : Publish changed packages to pkg.pr.new
3343 if : steps.changed_packages.outputs.all_changed_and_modified_files != ''
3444 run : pnpm dlx pkg-pr-new publish ${{ steps.changed_packages.outputs.all_changed_and_modified_files }}
Original file line number Diff line number Diff line change 1313 container :
1414 image : node:22-slim
1515 steps :
16- - name : Checkout code
17- uses : actions/checkout@v4
16+ - name : Checkout Repo
17+ uses : actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98
18+ with :
19+ fetch-depth : 1
20+ - name : pnpm setup
21+ uses : pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
1822 - name : Check pull request title
19- run : |
20- npx tsx ./scripts/pull-request-title-check.ts
23+ run : pnpm dlx tsx@4.21.0 ./scripts/pull-request-title-check.ts
Original file line number Diff line number Diff line change @@ -16,11 +16,13 @@ jobs:
1616 steps :
1717 - name : Checkout Repo
1818 uses : actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98
19+ with :
20+ fetch-depth : 2
1921 - run : git config --global --add safe.directory $GITHUB_WORKSPACE
2022 - name : pnpm setup
2123 uses : pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
2224 - name : Install packages
23- run : pnpm install --frozen-lockfile
25+ run : pnpm install --frozen-lockfile --prefer-offline
2426 - name : Enter prerelease mode
2527 # This step errors if it is already in prerelease mode
2628 continue-on-error : true
Original file line number Diff line number Diff line change @@ -15,11 +15,13 @@ jobs:
1515 steps :
1616 - name : Checkout Repo
1717 uses : actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98
18+ with :
19+ fetch-depth : 2
1820 - run : git config --global --add safe.directory $GITHUB_WORKSPACE
1921 - name : pnpm setup
2022 uses : pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
2123 - name : Install packages
22- run : pnpm install --frozen-lockfile
24+ run : pnpm install --frozen-lockfile --prefer-offline
2325 - name : Exit prerelease mode
2426 # This step errors if it is not in prerelease mode
2527 continue-on-error : true
Original file line number Diff line number Diff line change @@ -14,26 +14,31 @@ permissions:
1414jobs :
1515 tests :
1616 runs-on : buildjet-4vcpu-ubuntu-2204
17- outputs :
18- cache-hit : ${{ steps.pnpm-cache.outputs.cache-hit }}
1917 container :
20- image : node:22-slim
18+ image : node:22
2119 steps :
22- - name : Checkout
23- uses : actions/checkout@v4
20+ - name : Checkout Repo
21+ uses : actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98
22+ with :
23+ fetch-depth : 2
24+ - run : git config --global --add safe.directory $GITHUB_WORKSPACE
2425 - name : pnpm setup
2526 uses : pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
2627 - name : Install packages
27- run : pnpm install --frozen-lockfile
28+ run : pnpm install --frozen-lockfile --prefer-offline
2829 - name : Run Build
29- run : pnpm build
30- # We include the environment variables here so that the cache for turborepo
31- # is not invalidated and builds are re-ran
30+ run : |
31+ pnpm build --filter=[HEAD^1]
3232 env :
3333 SPAM_ASSASSIN_HOST : ${{ secrets.SPAM_ASSASSIN_HOST }}
3434 SPAM_ASSASSIN_PORT : ${{ secrets.SPAM_ASSASSIN_PORT }}
35+ TURBO_TOKEN : ${{ secrets.TURBO_TOKEN }}
36+ TURBO_TEAM : ${{ secrets.TURBO_TEAM }}
3537 - name : Run Tests
36- run : pnpm test
38+ run : |
39+ pnpm test --filter=[HEAD^1]
3740 env :
3841 SPAM_ASSASSIN_HOST : ${{ secrets.SPAM_ASSASSIN_HOST }}
3942 SPAM_ASSASSIN_PORT : ${{ secrets.SPAM_ASSASSIN_PORT }}
43+ TURBO_TOKEN : ${{ secrets.TURBO_TOKEN }}
44+ TURBO_TEAM : ${{ secrets.TURBO_TEAM }}
Original file line number Diff line number Diff line change 5353 "group" : " Internationalization" ,
5454 "icon" : " earth-americas" ,
5555 "pages" : [
56- " guides/internationalization/react-intl" ,
57- " guides/internationalization/react-i18next"
56+ " guides/internationalization/next-intl" ,
57+ " guides/internationalization/react-i18next" ,
58+ " guides/internationalization/react-intl"
5859 ]
5960 }
6061 ]
You can’t perform that action at this time.
0 commit comments