Skip to content

Commit

Permalink
Update npm-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aadsm authored Feb 25, 2024
1 parent 2f9d07c commit 72d13f0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,13 @@ jobs:
registry-url: https://registry.npmjs.org/
- run: npm ci
#- run: npm run dist
- name: Setup versions in \${{env}}
- name: Setup versions in ${{'${{env}}'}}
run: >-
echo "PREV_PKG_VERSION=$(git tag --list 'v*' --sort=-taggerdate | head -1)"
>> "$GITHUB_ENV"
echo "git tag --list 'v*' --sort=-taggerdate"
PREV_PKG_VERSION=$(git tag --list 'v*' --sort=-taggerdate | head -1)
echo "PREV_PKG_VERSION=$PREV_PKG_VERSION" >> "$GITHUB_ENV"
echo "PKG_VERSION=${{fromJSON(vars.versions).values[inputs.version]}}"
>> "$GITHUB_ENV"
Expand Down

0 comments on commit 72d13f0

Please sign in to comment.