Skip to content

Commit

Permalink
build: optimize build scripts (#57)
Browse files Browse the repository at this point in the history
* build: update dist

* build: optimize build  script

---------

Co-authored-by: darwin.apolinario <[email protected]>
  • Loading branch information
darwin808 and darwin.apolinario authored May 13, 2024
1 parent 137000d commit 9e84386
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -22,6 +22,9 @@ jobs:
- name: "Automated Version Bump"
run: npm version patch

- name: "Build dist folder"
run: npm run build

- name: Update & Push
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
Expand All @@ -34,6 +37,7 @@ jobs:
- name: Release
uses: justincy/[email protected]
id: release

- name: Print release output
if: ${{ steps.release.outputs.released == 'true' }}
run: echo Release ID ${{ steps.release.outputs.release_id }}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"start": "webpack-dev-server --hot --open --mode=development ",
"build": " webpack --mode=production",
"commit": " npm run test-all && npm run build && git add . && cz",
"commit": " npm run test-all && git add . && cz",
"check-types": "tsc --pretty --noEmit",
"check-format": "prettier --check .",
"check-lint": "eslint . --ext ts --ext tsx --ext js",
Expand Down

0 comments on commit 9e84386

Please sign in to comment.