Skip to content

Commit ffc0057

Browse files
fix(ci): integrate OIDC with Release Please Action
1 parent 4c68cdf commit ffc0057

6 files changed

Lines changed: 41 additions & 44 deletions

File tree

.github/workflows/cd.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: cd
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
id-token: write
12+
13+
jobs:
14+
publish:
15+
runs-on: ubuntu-24.04
16+
steps:
17+
- uses: actions/checkout@v6.0.0
18+
with:
19+
fetch-depth: 0
20+
21+
- id: release
22+
uses: googleapis/release-please-action@v4.4.0
23+
with:
24+
token: ${{ secrets.GITHUB_TOKEN }}
25+
config-file: .github/release-please/config.json
26+
manifest-file: .github/release-please/manifest.json
27+
28+
- uses: actions/setup-node@v6.0.0
29+
if: ${{ steps.release.outputs.release_created }}
30+
with:
31+
node-version: '24'
32+
registry-url: 'https://registry.npmjs.org'
33+
34+
- run: npm install -g npm@latest
35+
if: ${{ steps.release.outputs.release_created }}
36+
37+
- run: npm ci
38+
if: ${{ steps.release.outputs.release_created }}
39+
40+
- run: npm publish --tag latest --provenance --access public
41+
if: ${{ steps.release.outputs.release_created }}

.github/workflows/npm.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/rel.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)