Skip to content

Commit

Permalink
workflow: fix release
Browse files Browse the repository at this point in the history
  • Loading branch information
justorez committed Jan 10, 2024
1 parent d23b512 commit c2cbed1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build
name: ci
'on':
push:
branches:
Expand Down
19 changes: 12 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,21 @@ jobs:
- run: pnpm install

- name: Get package version
id: get-version
run: echo "::set-output name=version::$(node -p "require('./package.json').version")"
id: version
uses: ashley-taylor/[email protected]
with:
path: ./package.json
property: version

- run: pnpm run build
- run: zip -r dist-v${{ steps.get-version.outputs.version }}.zip dist
- name: Build
run: |
pnpm run build
zip -r dist-v${{ steps.version.outputs.value }}.zip dist/*
- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ steps.get-version.outputs.version }}
name: v${{ steps.get-version.outputs.version }}
tag_name: v${{ steps.version.outputs.value }}
name: v${{ steps.version.outputs.value }}
draft: true
files: dist-v${{ steps.get-version.outputs.version }}.zip
files: dist-v${{ steps.version.outputs.value }}.zip

0 comments on commit c2cbed1

Please sign in to comment.