Skip to content

Commit 2f42c57

Browse files
authored
Enable OIDC publishing for typescript pkg (#709)
Signed-off-by: Brian DeHamer <[email protected]>
1 parent a4ba66c commit 2f42c57

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

.github/workflows/typescript-publish.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -40,26 +40,16 @@ jobs:
4040
- name: Setup node
4141
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
4242
with:
43-
node-version: 18
43+
node-version: 20
4444
registry-url: 'https://registry.npmjs.org'
45-
- name: Authenticate to Google Cloud
46-
uses: google-github-actions/auth@140bb5113ffb6b65a7e9b937a81fa96cf5064462 # v2.1.11
47-
with:
48-
workload_identity_provider: projects/306323169285/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider
49-
service_account: [email protected]
50-
51-
- uses: google-github-actions/get-secretmanager-secrets@50ec04d56ddf2740b0bde82926cc742f90e06d2b # v2.2.4
52-
id: secrets
53-
with:
54-
secrets: |-
55-
npm_publish_token:sigstore-secrets/protobuf-specs-npm-publish-token
45+
- name: Install npm w/ OIDC support
46+
run: |
47+
npm install -g npm@^11.5.0
5648
- name: Build package
5749
run: |
5850
npm ci
5951
npm run build
6052
- name: Publish package
6153
run: |
6254
npm publish --provenance --access public
63-
env:
64-
NODE_AUTH_TOKEN: ${{ steps.secrets.outputs.npm_publish_token }}
6555

0 commit comments

Comments
 (0)