Skip to content

Commit 4f02152

Browse files
author
Excodibur
committed
fixed issues in workflows
1 parent 9f42527 commit 4f02152

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/publish-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
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]+"

.github/workflows/test-and-release.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff 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: |
@@ -88,8 +89,8 @@ jobs:
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 }}

0 commit comments

Comments
 (0)