Skip to content

Commit

Permalink
Create config of Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
gucong3000 committed Sep 25, 2022
1 parent 4a515f6 commit 1475030
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/webpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: NodeJS with Webpack

on:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Use Node.js current
uses: actions/setup-node@v3
with:
node-version: current

- name: Build
run: |
npm install
npm run build
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"test:fix": "npm run test -- --fix",
"start": "npx webpack --config webpack.config.js --watch --mode=development",
"build:app": "npx webpack --config webpack.config.js --mode=production",
"build:cmd": "cat src/miui_cleaner_cmd/main.cmd | iconv --from-code=utf-8 --to-code=gbk > dist/miui_cleaner_cmd/main.cmd",
"build:cmd": "mkdir -p dist/miui_cleaner_cmd && (cat src/miui_cleaner_cmd/main.cmd | iconv --from-code=utf-8 --to-code=gbk > dist/miui_cleaner_cmd/main.cmd)",
"build:pull": "adb pull /sdcard/auto.js/miui_cleaner_app/dist/MiuiCleaner_v2022.9.21.4.apk ./dist/miui_cleaner_app/",
"build": "node project.js && npm run build:app && npm run build:cmd",
"deploy:clear": "rm -rf ./dist/miui_cleaner_app/*.map && rm -rf ./dist/miui_cleaner_app/*.apk",
Expand Down

0 comments on commit 1475030

Please sign in to comment.