Skip to content

Commit 7dd3271

Browse files
committed
Trusted publish
1 parent 0eecc08 commit 7dd3271

File tree

3 files changed

+53
-2
lines changed

3 files changed

+53
-2
lines changed

.github/renovate.json5

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,24 @@
22
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
33
dependencyDashboardApproval: true,
44
postUpdateOptions: ['yarnDedupeHighest'],
5+
packageRules: [
6+
{
7+
"groupName": "devDependencies",
8+
"matchDepTypes": ["devDependencies"]
9+
},
10+
{
11+
"groupName": "dependencies",
12+
"matchDepTypes": ["dependencies"],
13+
"rangeStrategy": "replace"
14+
},
15+
{
16+
"groupName": "peerDependencies",
17+
"matchDepTypes": ["peerDependencies"],
18+
"rangeStrategy": "widen"
19+
},
20+
{
21+
groupName: 'GitHub Actions',
22+
matchManagers: ['github-actions'],
23+
},
24+
],
525
}

.github/workflows/publish.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Publish Package
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
permissions: {}
9+
10+
jobs:
11+
publish:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
id-token: write
15+
contents: read
16+
steps:
17+
- uses: actions/checkout@v6
18+
- uses: actions/setup-node@v6
19+
with:
20+
node-version: 'lts/*'
21+
cache: 'yarn'
22+
- run: |
23+
yarn --immutable
24+
yarn build
25+
- run: npm pkg delete scripts devDependencies packageManager
26+
- run: |
27+
node --version
28+
npm --version
29+
- run: npm publish

.release-it.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
{
2-
"$schema": "https://unpkg.com/release-it@18/schema/release-it.json",
2+
"$schema": "https://unpkg.com/release-it/schema/release-it.json",
33
"git": {
44
"commitMessage": "chore: release v${version}"
55
},
66
"github": {
77
"release": true
88
},
9+
"npm": {
10+
"publish": false
11+
},
912
"hooks": {
10-
"after:bump": "node --run build"
1113
}
1214
}

0 commit comments

Comments
 (0)