Skip to content

Commit

Permalink
add vvars
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamjain committed May 1, 2023
1 parent b68d5e2 commit c8a2666
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ jobs:
# Defaults to the user or organization that owns the workflow file
scope: '@octocat'
- name: vars
id: vars
run: |
echo "latest_version=$(npm view external-svg-loader version)" >> $GITHUB_OUTPUT
echo "package_version=$(cat package.json | jq -r '.version')" >> $GITHUB_OUTPUT
echo "latest_version=$(npm view external-svg-loader version)"
echo "package_version=$(cat package.json | jq -r '.version')"
- name: publish
run: |
echo ${{ steps.vars.outputs.latest_version }}
Expand Down

0 comments on commit c8a2666

Please sign in to comment.