Skip to content

Commit

Permalink
fix package version env for workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalygashkov committed Mar 25, 2024
1 parent 7fc3d46 commit 7904855
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Get name and version from package.json
run: |
test -n $(node -p -e "require('./package.json').name") &&
test -n $(node -p -e "require('./package.json').version") &&
echo PACKAGE_NAME=$(node -p -e "require('./package.json').name") >> $GITHUB_ENV &&
echo PACKAGE_VERSION=$(node -p -e "require('./package.json').version") >> $GITHUB_ENV || exit 1
- name: Release
uses: softprops/action-gh-release@v2
with:
Expand Down

0 comments on commit 7904855

Please sign in to comment.