Skip to content

Commit

Permalink
build: fix in step variable referencing
Browse files Browse the repository at this point in the history
  • Loading branch information
lsps9150414 committed May 19, 2022
1 parent 206a9e1 commit 4391e02
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/publish-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,12 @@ jobs:
# update package.json version, add CHANGELOG & commit changes
run: |
yarn bump-version
echo "::set-output name=pkg_version::$(node -p "require('./package.json').version")"
echo "::set-output name=release_env::canary"
echo "::set-output name=full_pkg_version::${{ steps.bump-version.outputs.pkg_version }}-${{ steps.bump-version.outputs.release_env }}"
PKG_VERSION=$(node -p "require('./package.json').version")
RELEASE_ENV=canary
FULL_PKG_VERSION=$PKG_VERSION-$RELEASE_ENV
echo "::set-output name=pkg_version::$PKG_VERSION"
echo "::set-output name=release_env::$RELEASE_ENV"
echo "::set-output name=full_pkg_version::$FULL_PKG_VERSION"
- name: Build package
run: TRACK=canary yarn build
Expand Down

0 comments on commit 4391e02

Please sign in to comment.