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 +12
-3
lines changed Expand file tree Collapse file tree 3 files changed +12
-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
28
32
node-version-file : ' .node-version'
29
33
cache : ' yarn'
30
34
registry-url : ' https://registry.npmjs.org'
35
+
36
+ # Trusted publishing requires npm CLI version 11.5.1 or later.
37
+ - name : Ensure npm >= 11.5.1
38
+ run : npm i -g npm@^11.5.1
39
+
31
40
- name : Install dependencies
32
41
run : yarn install --frozen-lockfile
33
42
37
46
git config user.name '[bot] github action (${{ github.workflow }})'
38
47
git config user.email '[email protected] '
39
48
yarn version --${{ github.event_name == 'schedule' && 'patch' || github.event.inputs.versionClass }}
49
+ yarn run publish
40
50
echo "new_version=$(jq -r .version package.json)" >> "$GITHUB_OUTPUT"
41
- env :
42
- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
43
51
44
52
- name : Create release
45
53
uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
Original file line number Diff line number Diff line change 21
21
"check:prettier" : " prettier --check ." ,
22
22
"format" : " prettier --write ." ,
23
23
"preversion" : " echo \" Run check for version $npm_package_version\" && yarn run check" ,
24
- "postversion " : " git push --tags && git push origin main && yarn publish . "
24
+ "publish " : " npm publish . && git push origin main && git push --tags "
25
25
},
26
26
"dependencies" : {
27
27
"stylelint" : " 16.24.0" ,
You can’t perform that action at this time.
0 commit comments