Skip to content
This repository has been archived by the owner on Jul 23, 2023. It is now read-only.

Commit

Permalink
Better action for reading version
Browse files Browse the repository at this point in the history
  • Loading branch information
Raicuparta authored May 28, 2022
1 parent 43d1428 commit bd8a76f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/release-from-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,20 @@ jobs:

- run: yarn run package

- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@main
with:
- name: get version
id: version
uses: notiz-dev/github-action-json-property@release
with:
path: app/package.json
prop_path: version

- uses: ncipollo/release-action@v1
with:
artifacts: "release/*.exe,release/*.zip,release/latest.yml,release/*.blockmap"
token: ${{ secrets.GITHUB_TOKEN }}
commit: master
tag: v${{ steps.package-version.outputs.current-version}}
name: ${{ steps.package-version.outputs.current-version}}
tag: v${{steps.version.outputs.prop}}
name: ${{steps.version.outputs.prop}}
prerelease: true
allowUpdates: true

Expand Down

0 comments on commit bd8a76f

Please sign in to comment.