Skip to content

Commit

Permalink
ci: update action
Browse files Browse the repository at this point in the history
  • Loading branch information
wan92hen committed Dec 14, 2022
1 parent d059c39 commit 5e68ba7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Compress zip
run: |
PACKAGE_VERSION=$(sed -nE 's/^\s*"version": "(.*?)",$/\1/p' package.json)
PACKAGE_NAME=${GITHUB_REPOSITORY_NAME_PART}
PACKAGE_NAME=${GITHUB_REPOSITORY_NAME_PART_SLUG}
PRE_ZIP_FOLDER=${PACKAGE_NAME}-${PACKAGE_VERSION}
ARTIFACT_NAME=${PRE_ZIP_FOLDER}.zip
ARTIFACT_PATHNAME=dist/${ARTIFACT_NAME}
Expand Down Expand Up @@ -107,9 +107,12 @@ jobs:
- name: Build distribution
run: |
pnpm build
- name: Inject slug/short variables
uses: rlespinasse/github-slug-action@v4
- name: Compress zip
run: |
PACKAGE_VERSION=$(sed -nE 's/^\s*"version": "(.*?)",$/\1/p' package.json)
PACKAGE_NAME=${GITHUB_REPOSITORY_NAME_PART_SLUG}
PRE_ZIP_FOLDER=${PACKAGE_NAME}-${PACKAGE_VERSION}
ARTIFACT_NAME=${PRE_ZIP_FOLDER}.zip
ARTIFACT_PATHNAME=dist/${ARTIFACT_NAME}
Expand Down

0 comments on commit 5e68ba7

Please sign in to comment.