Skip to content

Commit

Permalink
ci: add 'Inject slug' step in action
Browse files Browse the repository at this point in the history
  • Loading branch information
wan92hen committed Dec 14, 2022
1 parent 8c5669a commit d059c39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,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##*/}
PACKAGE_NAME=${GITHUB_REPOSITORY_NAME_PART}
PRE_ZIP_FOLDER=${PACKAGE_NAME}-${PACKAGE_VERSION}
ARTIFACT_NAME=${PRE_ZIP_FOLDER}.zip
ARTIFACT_PATHNAME=dist/${ARTIFACT_NAME}
Expand Down

0 comments on commit d059c39

Please sign in to comment.