Skip to content

Commit

Permalink
Try reading version using jq command
Browse files Browse the repository at this point in the history
  • Loading branch information
webair committed Apr 26, 2024
1 parent e13046f commit 7277bd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ jobs:
# docker run -e NPM_AUTH_TOKEN="${{ secrets.NPM_AUTH_TOKEN }}" publish_vite_plugin_vue_examples
- name: Tag published version
run: |
package_json=$(cat package.json)
echo "${{fromJSON(env.package_json).version}}"
version=$(jq -r '.version' package.json)
echo "$version"
- name: Prevent consistently growing buildx cache
run: |
rm -rf /tmp/.buildx-cache
Expand Down

0 comments on commit 7277bd9

Please sign in to comment.