File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,6 @@ permissions:
29
29
30
30
jobs :
31
31
env :
32
- STAGING_BRANCH : v${{ inputs.release-line }}.x-staging
33
- RELEASE_BRANCH : v${{ inputs.release-line }}.x
34
- RELEASE_DATE : ${{ inputs.release-date }}
35
32
releasePrepare :
36
33
runs-on : ubuntu-latest
37
34
steps :
41
38
# Needs the whole git history for ncu to work
42
39
# See https://github.com/nodejs/node-core-utils/pull/486
43
40
fetch-depth : 0
44
- token : ${{ secrets.GH_USER_TOKEN }}
45
41
46
42
# Install dependencies
47
43
- name : Install Node.js
@@ -56,10 +52,13 @@ jobs:
56
52
run : |
57
53
echo "REPOSITORY=$(echo ${{ github.repository }} | cut -d/ -f2)" >> $GITHUB_ENV
58
54
echo "OWNER=${{ github.repository_owner }}" >> $GITHUB_ENV
55
+ echo "STAGING_BRANCH=v${{ inputs.release-line }}.x-staging" >> $GITHUB_ENV
56
+ echo "RELEASE_BRANCH=v${{ inputs.release-line }}.x" >> $GITHUB_ENV
57
+ echo "RELEASE_DATE=${{ inputs.release-date }}" >> $GITHUB_ENV
59
58
60
59
- name : Configure @node-core/utils
61
60
run : |
62
- ncu-config set branch ${{ env. RELEASE_BRANCH }}
61
+ ncu-config set branch "${ RELEASE_BRANCH}"
63
62
ncu-config set upstream origin
64
63
ncu-config set username "$USERNAME"
65
64
ncu-config set token "$GH_TOKEN"
72
71
JENKINS_TOKEN : ${{ secrets.JENKINS_TOKEN }}
73
72
74
73
- name : Start git node release prepare
75
- run : ./tools/actions/create-release.sh ${{ inputs.RELEASE_DATE }}
74
+ run : |
75
+ ./tools/actions/create-release.sh "${RELEASE_DATE}"
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ git node release --prepare --skipBranchDiff
8
8
# We use it to not specify the branch name as it changes based on
9
9
# the commit list (semver-minor/semver-patch)
10
10
git config push.default current
11
- git push upstream
12
11
echo " /## $RELEASE_DATE /,/^<a id=/{ if (!/^<a id=/) print }" > temp.awk
13
12
awk -f temp.awk doc/changelogs/CHANGELOG_V23.md > pr-body.md
14
13
gh pr create --body-file pr-body.md
You can’t perform that action at this time.
0 commit comments