55 tags :
66 - ' v*'
77
8+ permissions :
9+ contents : read
10+
811env :
912 # 7 GiB by default on GitHub, setting to 6 GiB
1013 # https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
1114 NODE_OPTIONS : --max-old-space-size=6144
1215
1316jobs :
1417 context :
18+ permissions :
19+ checks : read
20+ contents : read
21+ pull-requests : read
22+ statuses : read
1523 uses : escapace/workflows/.github/workflows/context.yaml@trunk
1624
17- ci-typescript :
25+ continuous-integration :
1826 if : needs.context.outputs.environment == 'production' || needs.context.outputs.environment == 'staging'
1927 needs :
2028 - context
29+ permissions :
30+ contents : read
31+ packages : read
2132 secrets :
2233 CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
2334 uses : escapace/workflows/.github/workflows/ci-typescript.yaml@trunk
2435 with :
2536 enable-artifact-upload : true
2637 enable-codecov : ${{ !github.event.repository.private }}
38+ enable-github-pages : ${{ fromJSON(needs.context.outputs.github-pages) }}
39+ github-pages-path : ${{ needs.context.outputs.github-pages-path }}
2740 node-version : ${{ needs.context.outputs.node-version }}
2841 pnpm-version : ${{ needs.context.outputs.pnpm-version }}
2942 ref : ${{ needs.context.outputs.ref }}
3346 if : needs.context.outputs.environment == 'production' || needs.context.outputs.environment == 'staging'
3447 needs :
3548 - context
36- - ci-typescript
49+ - continuous-integration
50+ permissions :
51+ id-token : write
52+ packages : write
3753 secrets :
3854 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
3955 uses : escapace/workflows/.github/workflows/release-typescript.yaml@trunk
@@ -44,10 +60,24 @@ jobs:
4460 if : needs.context.outputs.environment == 'production' || needs.context.outputs.environment == 'staging'
4561 needs :
4662 - context
47- - ci-typescript
63+ - continuous-integration
4864 - release-typescript
65+ permissions :
66+ contents : write
4967 uses : escapace/workflows/.github/workflows/release-github.yaml@trunk
5068 with :
5169 changelog : ${{ needs.context.outputs.changelog }}
5270 prerelease : ${{ fromJSON(needs.context.outputs.prerelease) }}
5371 version : ${{ needs.context.outputs.version }}
72+
73+ release-github-pages :
74+ if : fromJSON(needs.context.outputs.github-pages) && (needs.context.outputs.environment == 'production' || needs.context.outputs.environment == 'staging')
75+ needs :
76+ - context
77+ - continuous-integration
78+ - release-typescript
79+ permissions :
80+ contents : read
81+ id-token : write
82+ pages : write
83+ uses : escapace/workflows/.github/workflows/release-github-pages.yaml@trunk
0 commit comments