File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 5
5
types :
6
6
- labeled
7
7
8
+ permissions :
9
+ id-token : write
10
+ contents : write
11
+ issues : write
12
+ pull-requests : write
13
+
8
14
jobs :
9
15
publish_release :
10
16
if : github.event.issue.state == 'open' && contains(github.event.issue.labels.*.name, 'release candidate') && github.event.label.name == 'approve release'
@@ -27,18 +33,18 @@ jobs:
27
33
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
28
34
git config user.name "github-actions[bot]"
29
35
- run : pnpm install --frozen-lockfile
36
+ # Ensure npm 11.5.1 or later is installed for OICD.
37
+ - run : |
38
+ npm install -g npm@latest
39
+ echo "Updated npm version: $(npm -v)"
30
40
- run : pnpm release
31
41
if : ${{ env.IS_PRERELEASE == 'false' }}
32
42
- run : pnpm release --prerelease
33
43
if : ${{ env.IS_PRERELEASE == 'true' }}
34
44
- run : pnpm publish --publish-branch release-candidate
35
45
if : ${{ env.IS_PRERELEASE == 'false' }}
36
- env :
37
- NODE_AUTH_TOKEN : ${{ secrets.KUFU_NPM_RELEASE_TOKEN }}
38
46
- run : pnpm publish --tag prerelease --publish-branch release-candidate
39
47
if : ${{ env.IS_PRERELEASE == 'true' }}
40
- env :
41
- NODE_AUTH_TOKEN : ${{ secrets.KUFU_NPM_RELEASE_TOKEN }}
42
48
- run : echo NEW_TAG=$(git describe) >> $GITHUB_ENV
43
49
- run : git push origin $NEW_TAG
44
50
- run : pnpm dlx ts-node ./scripts/getLatestChangelog.ts > ${{ env.CHANGELOG_PATH }}
You can’t perform that action at this time.
0 commit comments