Skip to content

Commit

Permalink
Fetch version from zip
Browse files Browse the repository at this point in the history
  • Loading branch information
Corb3nik committed Jan 5, 2025
1 parent 8434138 commit 3160760
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ jobs:
- name: Checkout project
uses: actions/checkout@v4

- name: Check version
id: meta
run: |
VERSION=$(jq -r .version manifest.json)
echo "version=${VERSION}" >> $GITHUB_OUTPUT

- name: Setup Node.js
uses: actions/setup-node@v4
Expand All @@ -49,6 +44,13 @@ jobs:
rm private_key.pem
fi
- name: Check version
id: meta
working-directory: dist
run: |
VERSION=$(unzip -p ./plugin_package.zip manifest.json | jq -r .version)
echo "version=${VERSION}" >> $GITHUB_OUTPUT
- name: Create release
uses: ncipollo/release-action@v1
with:
Expand Down

0 comments on commit 3160760

Please sign in to comment.