-
-
Notifications
You must be signed in to change notification settings - Fork 44
41 lines (34 loc) · 1.06 KB
/
js-branch.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
name: 'Publish a built Javascript Branch'
on:
push:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build Javascript
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: yarn
- name: Build modules
run: yarn && yarn build:dist --network-timeout 1000000
- name: Install pre-gyp in build-dist
working-directory: build-dist/core
run: yarn add --dev node-gyp@^10.2.0
- name: Publish branch
run: |
cd build-dist
git config --global user.email "[email protected]"
git config --global user.name "CI"
git init -b main
git add -A
git commit -m 'Auto-build Javascript files'
git push -f https://ulixee:${{ env.GH_TOKEN }}@github.com/ulixee/hero.git main:${{ github.ref_name }}-built-js
shell: bash
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}