diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 000000000..2c678084a --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,32 @@ +name: Build +on: + push: + branches: + - mdl-1.x + +jobs: + build: + name: Build + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: npm install build and test + uses: actions/setup-node@v4 + with: + node-version: 11 + cache: 'npm' + run: | + npm install + npm run test + - name: Archive production artifacts + uses: actions/upload-artifact@v4 + with: + name: dist + path: | + dist/material.js + dist/material.min.js + dist/material.min.js.map diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dba74cb4b..c996c3464 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,9 +2,6 @@ name: CI on: pull_request: merge_group: - push: - branches: - - mdl-1.x jobs: tests: