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 1d1ff49 commit 6dc8dc2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,13 @@ jobs:
#- run: npm run dist
- name: Setup versions in ${{'${{env}}'}}
run: |
git tag --list
git tag --list 'v*' --sort=-taggerdate
echo 1
git tag --list 'v*' --sort=-taggerdate | head -1
echo 2
echo "$(git tag --list 'v*' --sort=-taggerdate | head -1)"
echo 3
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 All @@ -50,8 +54,6 @@ jobs:
Changes since ${{env.PREV_PKG_VERSION}}:\
\n\
$(git log --pretty='format:%h %s' ${{env.PREV_PKG_VERSION}}..HEAD | grep -v '.yml')\""
env:
PKG_VERSION: ${{fromJSON(vars.versions).values[inputs.version]}}
- name: Push new version
run: git push
- name: Publish to npm
Expand Down

0 comments on commit 6dc8dc2

Please sign in to comment.