File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 build :
1414 name : Build, lint, and test on Node ${{ matrix.node }} and ${{ matrix.os }}
1515
16+ permissions :
17+ contents : read
18+
1619 runs-on : ${{ matrix.os }}
1720
1821 strategy :
6770 release :
6871 name : Release
6972
73+ permissions :
74+ contents : write
75+ issues : write
76+ pull-requests : write
77+ id-token : write
78+
7079 if : ${{ github.ref == 'refs/heads/master' }}
7180
7281 needs : [build]
@@ -90,19 +99,15 @@ jobs:
9099 with :
91100 node-version-file : .nvmrc
92101 cache : " pnpm"
102+ registry-url : https://registry.npmjs.org/
93103
94104 - name : Install
95- run : pnpm install
105+ run : pnpm install --frozen-lockfile
96106
97107 - name : Build
98108 run : pnpm build
99109
100110 - name : Release
101111 run : pnpm semantic-release
102112 env :
103- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
104113 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
105- GIT_AUTHOR_NAME : ${{ secrets.SEMANTIC_RELEASE_GIT_NAME }}
106- GIT_AUTHOR_EMAIL : ${{ secrets.SEMANTIC_RELEASE_GIT_EMAIL }}
107- GIT_COMMITTER_NAME : ${{ secrets.SEMANTIC_RELEASE_GIT_NAME }}
108- GIT_COMMITTER_EMAIL : ${{ secrets.SEMANTIC_RELEASE_GIT_EMAIL }}
Original file line number Diff line number Diff line change 8888 "changelogTitle" : " # Changelog"
8989 }
9090 ],
91- " @semantic-release/npm" ,
91+ [
92+ " @semantic-release/npm" ,
93+ {
94+ "npmPublish" : true ,
95+ "provenance" : true
96+ }
97+ ],
9298 [
9399 " @semantic-release/git" ,
94100 {
You can’t perform that action at this time.
0 commit comments