This repository was archived by the owner on Sep 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 9
9
] ,
10
10
timezone : 'Asia/Tokyo' ,
11
11
postUpdateOptions : [ 'yarnDedupeHighest' ] ,
12
+ minimumReleaseAge : '7 days' ,
12
13
}
Original file line number Diff line number Diff line change @@ -17,6 +17,10 @@ concurrency:
17
17
group : ${{ github.workflow }}
18
18
cancel-in-progress : true
19
19
20
+ permissions :
21
+ id-token : write # Required for OIDC
22
+ contents : write # create tag and release
23
+
20
24
jobs :
21
25
publish :
22
26
runs-on : ubuntu-latest
32
36
cache : ' pnpm'
33
37
registry-url : ' https://registry.npmjs.org'
34
38
39
+ # Trusted publishing requires npm CLI version 11.5.1 or later.
40
+ - name : Ensure npm >= 11.5.1
41
+ run : npm i -g npm@^11.5.1
42
+
35
43
- name : Install dependencies
36
44
run : pnpm i --frozen-lockfile
37
45
43
51
pnpm version ${{ github.event_name == 'schedule' && 'patch' || github.event.inputs.versionClass }}
44
52
pnpm release
45
53
echo "new_version=$(jq -r .version package.json)" >> "$GITHUB_OUTPUT"
46
- env :
47
- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
48
54
49
55
- name : Create release
50
56
uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
Original file line number Diff line number Diff line change 33
33
"format" : " prettier --write ." ,
34
34
"release" : " pnpm release:check && pnpm release:publish" ,
35
35
"release:check" : " echo \" Run check for version $npm_package_version\" && pnpm check" ,
36
- "release:publish" : " git push --tags && git push origin main && pnpm publish . "
36
+ "release:publish" : " npm publish . && git push origin main && git push --tags "
37
37
},
38
38
"dependencies" : {
39
39
"@eslint/eslintrc" : " 3.3.1" ,
You can’t perform that action at this time.
0 commit comments