Skip to content

Commit b1b6788

Browse files
committed
Add obfuscator
1 parent c6285a3 commit b1b6788

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- dev
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
build:
1013
runs-on: ubuntu-latest
@@ -24,7 +27,8 @@ jobs:
2427
- name: Build project
2528
run: |
2629
npx wrangler deploy src/worker.js --name bpb-worker-panel --compatibility-flag [nodejs_compat] --compatibility-date 2024-10-26 --dry-run --outdir=dist
27-
cp dist/worker.js _worker.js
30+
npm install -g javascript-obfuscator
31+
javascript-obfuscator dist/worker.js --output _worker.js
2832
2933
- name: Commit and push built worker
3034
run: |

0 commit comments

Comments
 (0)