Skip to content

Commit cd13cbe

Browse files
authored
chore: Use Trusted Publishing in NPM publish (#525)
1 parent 08b6a7d commit cd13cbe

File tree

16 files changed

+14925
-7184
lines changed

16 files changed

+14925
-7184
lines changed

.gitattributes

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

.github/workflows/code-health.yml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,19 @@ jobs:
1212
permissions:
1313
contents: write
1414
steps:
15-
- name: Checkout Repository
16-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
17-
with:
18-
ref: ${{ github.event.pull_request.head.ref }}
19-
repository: ${{ github.event.pull_request.head.repo.full_name }}
15+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
2016
- name: Setup Node.js
2117
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903
2218
with:
23-
node-version: 18.x
19+
node-version: 24.x
2420
- name: Install dependencies
25-
run: yarn install --check-files
21+
run: npm ci
2622
- name: compile
2723
run: npx projen compile
2824
lint:
2925
runs-on: ubuntu-latest
3026
steps:
31-
- name: Checkout Repository
32-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
27+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
3328
- name: actionlint
3429
run: |
3530
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
@@ -38,9 +33,9 @@ jobs:
3833
- name: Setup Node.js
3934
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903
4035
with:
41-
node-version: 18.x
36+
node-version: 24.x
4237
- name: Install dependencies
43-
run: yarn install --check-files
38+
run: npm ci
4439
- name: lint
4540
run: npx projen eslint
4641
shellcheck:
@@ -58,22 +53,26 @@ jobs:
5853
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
5954
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903
6055
with:
61-
node-version: 18.x
62-
- run: yarn install --check-files
56+
node-version: 24.x
57+
- run: npm ci
6358
- run: npm install -g cdk-import
6459
- run: ./scripts/cdk-all.sh
6560
- run: npx projen build
6661
- name: Find mutations
6762
id: self_mutation
6863
run: |-
6964
git add .
70-
git diff --staged --patch --exit-code > .repo.patch || echo "self_mutation_happened=true" >> "${GITHUB_OUTPUT}"
65+
git diff --staged --patch > .repo.patch
66+
if [ -s .repo.patch ]; then
67+
echo "self_mutation_happened=true" >> "${GITHUB_OUTPUT}"
68+
fi
7169
- name: Upload patch
7270
if: steps.self_mutation.outputs.self_mutation_happened
7371
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4
7472
with:
7573
name: .repo.patch
7674
path: .repo.patch
75+
include-hidden-files: true
7776
- name: Fail build on mutation
7877
if: steps.self_mutation.outputs.self_mutation_happened
7978
run: |-
@@ -87,8 +86,8 @@ jobs:
8786
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
8887
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903
8988
with:
90-
node-version: 18.x
91-
- run: yarn install --check-files
89+
node-version: 24.x
90+
- run: npm ci
9291
- run: npm install -g cdk
9392
- run: npx projen build
9493
- run: npx projen package:js

.github/workflows/dependency-review.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ jobs:
99
dependency-review:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: Checkout Repository
13-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
12+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
1413
- name: Dependency Review
1514
uses: actions/dependency-review-action@40c09b7dc99638e5ddb0bfd91c1673effc064d8a

.github/workflows/package.yml

Lines changed: 20 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,13 @@ jobs:
77
runs-on: ubuntu-latest
88
permissions: {}
99
steps:
10-
- name: Checkout
11-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
12-
with:
13-
ref: ${{ github.event.pull_request.head.ref }}
14-
repository: ${{ github.event.pull_request.head.repo.full_name }}
10+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
1511
- name: Setup Node.js
1612
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903
1713
with:
18-
node-version: 18.x
14+
node-version: 24.x
1915
- name: Install dependencies
20-
run: yarn install --check-files
16+
run: npm ci
2117
- name: build
2218
run: npx projen build
2319
package-js:
@@ -27,14 +23,10 @@ jobs:
2723
steps:
2824
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903
2925
with:
30-
node-version: 18.x
31-
- name: Checkout
32-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
33-
with:
34-
ref: ${{ github.event.pull_request.head.ref }}
35-
repository: ${{ github.event.pull_request.head.repo.full_name }}
26+
node-version: 24.x
27+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
3628
- name: Install Dependencies
37-
run: yarn install --check-files --frozen-lockfile
29+
run: npm ci
3830
- name: Create js artifact
3931
run: npx projen compile && npx projen package:js
4032
package-java:
@@ -45,17 +37,13 @@ jobs:
4537
- uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165
4638
with:
4739
distribution: temurin
48-
java-version: 11.x
40+
java-version: 21.x
4941
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903
5042
with:
51-
node-version: 18.x
52-
- name: Checkout
53-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
54-
with:
55-
ref: ${{ github.event.pull_request.head.ref }}
56-
repository: ${{ github.event.pull_request.head.repo.full_name }}
43+
node-version: 24.x
44+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
5745
- name: Install Dependencies
58-
run: yarn install --check-files --frozen-lockfile
46+
run: npm ci
5947
- name: Create java artifact
6048
run: npx projen compile && npx projen package:java
6149
package-python:
@@ -68,14 +56,10 @@ jobs:
6856
python-version: 3.x
6957
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903
7058
with:
71-
node-version: 18.x
72-
- name: Checkout
73-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
74-
with:
75-
ref: ${{ github.event.pull_request.head.ref }}
76-
repository: ${{ github.event.pull_request.head.repo.full_name }}
59+
node-version: 24.x
60+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
7761
- name: Install Dependencies
78-
run: yarn install --check-files --frozen-lockfile
62+
run: npm ci
7963
- name: Create python artifact
8064
run: npx projen compile && npx projen package:python
8165
package-dotnet:
@@ -88,14 +72,10 @@ jobs:
8872
dotnet-version: 9.0.x
8973
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903
9074
with:
91-
node-version: 18.x
92-
- name: Checkout
93-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
94-
with:
95-
ref: ${{ github.event.pull_request.head.ref }}
96-
repository: ${{ github.event.pull_request.head.repo.full_name }}
75+
node-version: 24.x
76+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
9777
- name: Install Dependencies
98-
run: yarn install --check-files --frozen-lockfile
78+
run: npm ci
9979
- name: Create dotnet artifact
10080
run: npx projen compile && npx projen package:dotnet
10181

@@ -106,17 +86,13 @@ jobs:
10686
steps:
10787
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00
10888
with:
109-
go-version: ^1.16.0
89+
go-version: ^1.25.0
11090
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903
11191
with:
112-
node-version: 18.x
113-
- name: Checkout
114-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
115-
with:
116-
ref: ${{ github.event.pull_request.head.ref }}
117-
repository: ${{ github.event.pull_request.head.repo.full_name }}
92+
node-version: 24.x
93+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
11894
- name: Install Dependencies
119-
run: yarn install --check-files --frozen-lockfile
95+
run: npm ci
12096
- name: Create go artifact
12197
run: npx projen compile && npx projen package:go
12298

0 commit comments

Comments
 (0)