Skip to content

Commit

Permalink
try jq version extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
msprijatelj committed May 19, 2023
1 parent 8849768 commit 98e77ce
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/butler-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,13 @@ jobs:
node-version: 18
- run: npm ci
- run: npm run build
- run: |
echo 'PACKAGE_JSON<<EOF' >> $GITHUB_ENV
cat ./package.json >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
- run: echo "VERSION=$(jq '.version' ./package.json)" >> $GITHUB_ENV
- name: Butler Push
uses: yeslayla/butler-publish-itchio-action@v1.0.3
env:
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }}
CHANNEL: ${{ vars.BUTLER_CHANNEL }}
ITCH_GAME: ${{ vars.ITCH_GAME }}
ITCH_USER: ${{ vars.ITCH_USER }}
PACKAGE: dist/${{ github.event.repository.name }}-${{ fromJson(env.PACKAGE_JSON).version }}.lcp
VERSION: ${{ fromJson(env.PACKAGE_JSON).version }}
PACKAGE: dist/${{ github.event.repository.name }}-${{ env.VERSION }}.lcp
VERSION: ${{ env.VERSION }}

0 comments on commit 98e77ce

Please sign in to comment.