Skip to content

Commit 5204b9b

Browse files
authored
fix: add provenance (#884)
1 parent d8eb944 commit 5204b9b

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Create release PR
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
create-pr:
8+
runs-on: ubuntu-latest
9+
10+
permissions:
11+
contents: write
12+
pull-requests: write
13+
14+
# Let's try to trigger releases only after this release PR gets merged
15+
# so we might need to verify who the author is to do so
16+
steps:
17+
- uses: googleapis/release-please-action@c2a5a2bd6a758a0937f1ddb1e8950609867ed15c # v4.3.0
18+
with:
19+
# this is a built-in strategy in release-please, see "Action Inputs"
20+
# for more options
21+
release-type: node
22+
skip-github-release: true
23+
skip-labeling: true

.github/workflows/publish.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
on:
2+
push:
3+
branches:
4+
- current
5+
6+
name: publish
7+
8+
permissions:
9+
id-token: write # Required for OIDC
10+
contents: read
11+
12+
jobs:
13+
publish:
14+
if: >
15+
github.event.head_commit.author.username == 'github-actions[bot]' && github.event.head_commit.author.email == '41898282+github-actions[bot]@users.noreply.github.com'
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
19+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
20+
with:
21+
node-version: 24
22+
registry-url: 'https://registry.npmjs.org'
23+
- run: npm install -g npm@latest
24+
- run: npm install
25+
- run: npm publish --access public

0 commit comments

Comments
 (0)