File tree Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -107,30 +107,27 @@ jobs:
107107 with :
108108 jobs : ${{ toJSON(needs) }}
109109
110- release :
111- name : release
110+ semantic-release :
112111 runs-on : ubuntu-latest
112+ if : github.event_name != 'pull_request'
113113 permissions :
114- contents : write
114+ contents : write # write for semantic-release
115115 needs : [pass]
116116
117117 steps :
118118 - name : Checkout
119119 uses : actions/checkout@v4
120- with :
121- ref : ${{ github.head_ref }}
122- token : ${{ secrets.GITHUB_TOKEN }}
123120
124- - uses : actions/setup-node@v4
121+ - name : Setup Node.js
122+ uses : actions/setup-node@v4
125123 with :
126- node-version : 20
124+ node-version : lts/*
127125
128126 - name : Semantic Release
129127 env :
130- GITHUB_TOKEN : ${{ secrets.GH_PAT }}
128+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
131129 run : >
132130 npx
133- --package @semantic-release/github
134- --package conventional-changelog-conventionalcommits@7.0.2
135- --package semantic-release@23.1.1
131+ --package conventional-changelog-conventionalcommits@7
132+ --package semantic-release@22
136133 semantic-release
You can’t perform that action at this time.
0 commit comments