Skip to content

Commit abadf13

Browse files
authored
chore: enable trusted publishing for releases to npm and pypi (#842)
This allows us to remove NPM and PyPI tokens from our secrets. Draft until I also make the necessary changes in our NPM and PyPI accounts. --- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license
1 parent becbd49 commit abadf13

File tree

2 files changed

+47
-13
lines changed

2 files changed

+47
-13
lines changed

.github/workflows/release.yml

Lines changed: 43 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projenrc.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,8 @@ function genericCdkProps(props: GenericProps = {}) {
341341
authorUrl: 'https://aws.amazon.com',
342342
authorOrganization: true,
343343
releasableCommits: pj.ReleasableCommits.featuresAndFixes('.'),
344+
releaseEnvironment: 'releasing',
345+
npmTrustedPublishing: true,
344346
jestOptions: {
345347
configFilePath: 'jest.config.json',
346348
junitReporting: false,
@@ -415,6 +417,7 @@ new JsiiBuild(cloudAssemblySchema, {
415417
publishToPypi: {
416418
distName: 'aws-cdk.cloud-assembly-schema',
417419
module: 'aws_cdk.cloud_assembly_schema',
420+
trustedPublishing: true,
418421
},
419422
pypiClassifiers: [
420423
'Framework :: AWS CDK',
@@ -1411,6 +1414,7 @@ new JsiiBuild(cliLibAlpha, {
14111414
publishToPypi: {
14121415
distName: 'aws-cdk.cli-lib-alpha',
14131416
module: 'aws_cdk.cli_lib_alpha',
1417+
trustedPublishing: true,
14141418
},
14151419
pypiClassifiers: [
14161420
'Framework :: AWS CDK',

0 commit comments

Comments
 (0)