Skip to content

Commit 060bcbf

Browse files
iliapoloVieltojarvi
andauthored
chore: enable trusted publishing release (#3026)
Change npm publishing step to use trusted publishers - requires also bumping to node 24. --------- Co-authored-by: Vieltojarvi <[email protected]>
1 parent a13d72d commit 060bcbf

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/health_checks.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -912,14 +912,17 @@ jobs:
912912
- e2e_hosting
913913
- resolve_inputs
914914
runs-on: ubuntu-latest
915+
environment: release
916+
permissions:
917+
id-token: write
915918
steps:
916919
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # version 4.1.4
917920
- uses: ./.github/actions/setup_node
918921
with:
919-
node-version: 18
922+
node-version: 24
920923
- uses: ./.github/actions/restore_build_cache
921924
with:
922-
node-version: 18
925+
node-version: 24
923926
cdk-lib-version: ${{ needs.resolve_inputs.outputs.cdk_lib_version }}
924927
- id: is_version_packages_commit
925928
run: echo "is_version_packages_commit=$(npx tsx scripts/is_version_packages_commit.ts)" >> "$GITHUB_OUTPUT"
@@ -932,7 +935,7 @@ jobs:
932935
publish: npm run publish
933936
env:
934937
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
935-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
938+
NPM_TRUSTED_PUBLISHER: 'true'
936939
- name: Update hotfix branch
937940
if: ${{ steps.changeset_publish.outputs.published == 'true' && github.ref_name == 'main' }}
938941
run: git push origin main:hotfix --force

0 commit comments

Comments
 (0)