-
Notifications
You must be signed in to change notification settings - Fork 163
42 lines (35 loc) · 1.14 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Node.js CI
on:
workflow_dispatch:
schedule:
- cron: '0 6 * * 1'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Clone repository
run: git clone https://github.com/berstend/puppeteer-extra.git puppeteer-extra --depth=1
- name: 'Fix for: error [email protected]: The platform "linux" is incompatible with this module.'
run: cd puppeteer-extra && npx json -I -f package.json -e 'this.resolutions={}'
- name: Build packages
run: |
cd puppeteer-extra
yarn install
yarn bootstrap
yarn build
- name: Extract stealth.min.js
run: |
cd puppeteer-extra/packages/extract-stealth-evasions
node index.js
cp stealth.min.js ../../../
- name: Commit stealth.min.js
uses: EndBug/add-and-commit@v4
with:
add: 'stealth.min.js'
force: true
ref: 'main'
message: 'Auto-updated stealth.min.js with newest evasions'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}