Skip to content

Commit

Permalink
Trying to fix github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegWock committed Feb 28, 2023
1 parent 50d94ef commit 7949a70
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/compile_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,15 @@ jobs:
node-version: 16
cache: 'yarn'
- run: yarn install --frozen-lockfile
- id: set_var
run: |
content=`cat ./package.json`
# the following lines are only required for multi line json
content="${content//'%'/'%25'}"
content="${content//$'\n'/'%0A'}"
content="${content//$'\r'/'%0D'}"
# end of optional handling for multi line json
echo "::set-output name=packageJson::$content"
echo "packageJson=$content" >> $GITHUB_OUTPUT
- name: get-version
id: package-version
uses: martinbeentjes/npm-get-version-action@main
- run: yarn run production
- run: yarn run production:ff
- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: 'v${{fromJson(steps.set_var.outputs.packageJson).version}}'
tag_name: 'v${{steps.package-version.outputs.current-version}}'
generate_release_notes: true
files: |
dist/*.zip

0 comments on commit 7949a70

Please sign in to comment.