Skip to content

Commit 5bff65d

Browse files
Share version variable during workflow
1 parent 2d7422a commit 5bff65d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/npm-publish.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ jobs:
3737
fi
3838
3939
echo "Setting package version to ${VERSION}"
40+
# Persist VERSION for later steps so we can use it for the commit message
41+
echo "VERSION=${VERSION}" >> $GITHUB_ENV
4042
npm version $VERSION --no-git-tag-version
4143
4244
- run: npm publish --provenance --access=public

0 commit comments

Comments
 (0)