Skip to content

Commit 22515d3

Browse files
authored
ci: trusted publishing (#113)
1 parent 93261e1 commit 22515d3

File tree

3 files changed

+51
-0
lines changed

3 files changed

+51
-0
lines changed

.github/release-please/config.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"release-type": "node",
3+
"prerelease": false,
4+
"include-component-in-tag": false,
5+
"changelog-sections": [
6+
{ "type": "feat", "section": "🌟 Features", "hidden": false },
7+
{ "type": "fix", "section": "🩹 Fixes", "hidden": false },
8+
{ "type": "docs", "section": "📚 Documentation", "hidden": false },
9+
10+
{ "type": "chore", "section": "🧹 Chores", "hidden": false },
11+
{ "type": "perf", "section": "🧹 Chores", "hidden": false },
12+
{ "type": "refactor", "section": "🧹 Chores", "hidden": false },
13+
{ "type": "test", "section": "🧹 Chores", "hidden": false },
14+
15+
{ "type": "build", "section": "🤖 Automation", "hidden": false },
16+
{ "type": "ci", "section": "🤖 Automation", "hidden": true }
17+
],
18+
"packages": { ".": {} }
19+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{".":"7.32.1"}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
name: release-please
6+
jobs:
7+
release-please:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: write
11+
pull-requests: write
12+
id-token: write
13+
steps:
14+
- uses: googleapis/release-please-action@v4
15+
id: release
16+
with:
17+
config-file: .github/release-please/config.json
18+
manifest-file: .github/release-please/manifest.json
19+
20+
- uses: actions/checkout@v4
21+
if: ${{ steps.release.outputs.release_created }}
22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version: lts/*
25+
registry-url: https://registry.npmjs.org
26+
if: ${{ steps.release.outputs.release_created }}
27+
- run: |
28+
npm install -g npm@latest # npm 11.5.1 or later is required so update to latest to be sure
29+
npm install
30+
npm publish --provenance
31+
if: ${{ steps.release.outputs.release_created }}

0 commit comments

Comments
 (0)