File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1010 # - 'docs/**.adoc'
1111 # - '!docs/release-documentation.adoc'
1212 branches :
13- - " master "
13+ - main
1414 tags :
1515 # normal versions
1616 - " v[0-9]+.[0-9]+.[0-9]+"
Original file line number Diff line number Diff line change @@ -65,16 +65,17 @@ jobs:
6565 node-version : ${{ matrix.node-version }}
6666
6767 - name : Extract the version and commit body from the tag
68+ id : extract_release
6869 # The body may be multiline, therefore newlines and % need to be escaped
6970 run : |
7071 VERSION="${{ github.ref }}"
7172 VERSION=${VERSION##*/v}
72- echo "::set-env name=VERSION::$VERSION"
73+ echo "::set-output name=VERSION::$VERSION"
7374 BODY=$(git show -s --format=%b)
7475 BODY="${BODY//'%'/'%25'}"
7576 BODY="${BODY//$'\n'/'%0A'}"
7677 BODY="${BODY//$'\r'/'%0D'}"
77- echo "::set-env name=BODY::$BODY"
78+ echo "::set-output name=BODY::$BODY"
7879
7980 - name : Publish package to npm
8081 run : |
8889 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8990 with :
9091 tag_name : ${{ github.ref }}
91- release_name : Release v${{ env .VERSION }}
92+ release_name : Release v${{ steps.extract_release.outputs .VERSION }}
9293 draft : false
9394 # Prerelease versions create prereleases on Github
94- prerelease : ${{ contains(env .VERSION, '-') }}
95- body : ${{ env .BODY }}
95+ prerelease : ${{ contains(steps.extract_release.outputs .VERSION, '-') }}
96+ body : ${{ steps.extract_release.outputs. .BODY }}
You can’t perform that action at this time.
0 commit comments