diff --git a/.github/workflows/latest-pre.yml b/.github/workflows/latest-pre.yml index d77f9792f..75bb71fc1 100644 --- a/.github/workflows/latest-pre.yml +++ b/.github/workflows/latest-pre.yml @@ -1,8 +1,10 @@ name: latest pre-release on: push: + branches: + - develop tags: - - '**-pre**' + - '**-pre**' jobs: build: diff --git a/.github/workflows/runtime.yml b/.github/workflows/runtime.yml new file mode 100644 index 000000000..d2ab4d573 --- /dev/null +++ b/.github/workflows/runtime.yml @@ -0,0 +1,40 @@ +name: Runtime +on: + pull_request: + branches: + - v2-alpha + paths: + - 'v2/internal/frontend/runtime/**' +jobs: + rebuild-runtime: + name: Rebuild the runtime + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: lts + + - name: Install dependencies + uses: elstudio/actions-js-build/build@v4 + with: + wdPath: 'v2/internal/frontend/runtime' + args: install + + - name: Rebuild runtime + uses: elstudio/actions-js-build/build@v4 + with: + wdPath: 'v2/internal/frontend/runtime' + args: run build + + - name: Cache dependencies + uses: actions/cache@v2 + with: + path: ~/.npm + key: npm-${{ hashFiles('v2/internal/frontend/runtime/package-lock.json') }} + restore-keys: npm- + + - name: Commit changes + uses: elstudio/actions-js-build/commit@v4 + with: + commitMessage: Rebuild runtime