Skip to content

Commit 11321e0

Browse files
authored
Setup trusted publishing (#100)
1 parent bf0897a commit 11321e0

4 files changed

Lines changed: 2869 additions & 72 deletions

File tree

.github/workflows/publish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
permissions: {}
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
publish:
16+
runs-on: ubuntu-latest
17+
permissions:
18+
id-token: write
19+
steps:
20+
- uses: actions/checkout@v6
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v6
24+
with:
25+
node-version: "lts/*"
26+
27+
- name: Install dependencies
28+
run: npm ci
29+
30+
- name: Publish to NPM
31+
run: npm publish

.release-it.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"$schema": "https://unpkg.com/release-it/schema/release-it.json",
3+
"git": {
4+
"commitMessage": "chore: release v${version}",
5+
"tagName": "v${version}"
6+
},
7+
"github": {
8+
"release": true
9+
},
10+
"npm": {
11+
"publish": false
12+
}
13+
}

0 commit comments

Comments
 (0)