File tree Expand file tree Collapse file tree 1 file changed +1
-41
lines changed Expand file tree Collapse file tree 1 file changed +1
-41
lines changed Original file line number Diff line number Diff line change 5656 run : gh pr merge --auto --merge "$PR_URL" # Use Github CLI to merge automatically the PR
5757 env :
5858 PR_URL : ${{github.event.pull_request.html_url}}
59- GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
60-
61- npm-publish-build :
62- needs : build
63- runs-on : ubuntu-latest
64- steps :
65- - uses : actions/download-artifact@v6
66- with :
67- name : build
68- - uses : actions/setup-node@v6
69- with :
70- node-version : 20.x
71- -
uses :
rlespinasse/[email protected] 72- - name : Append commit hash to package version
73- run : ' sed -i -E "s/(\"version\": *\"[^\"]+)/\1-${GITHUB_SHA_SHORT}/" package.json'
74- - name : Disable pre- and post-publish actions
75- run : ' sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
76- -
uses :
JS-DevTools/[email protected] 77- if : github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]'
78- with :
79- token : ${{ secrets.NPM_TOKEN }}
80- tag : ${{ env.GITHUB_REF_SLUG }}
81-
82- npm-publish-latest :
83- needs : [build, npm-publish-build]
84- runs-on : ubuntu-latest
85- if : github.ref == 'refs/heads/main'
86- steps :
87- - uses : actions/download-artifact@v6
88- with :
89- name : build
90- - uses : actions/setup-node@v6
91- with :
92- node-version : 20.x
93- - name : Disable pre- and post-publish actions
94- run : ' sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
95- -
uses :
JS-DevTools/[email protected] 96- if : github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]'
97- with :
98- token : ${{ secrets.NPM_TOKEN }}
99- tag : latest
59+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
You can’t perform that action at this time.
0 commit comments