diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 56da4e1..c6f46be 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,30 +8,18 @@ on: branches: [main] jobs: - build: + build-and-deploy: runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [16.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - cache: "npm" - - run: npm ci - - run: npm run ci:lint - # - run: npm run ci:test - - name: Build + - name: Checkout 🛎️ + uses: actions/checkout@v3 + - name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built. run: | + npm run ci:lint npm run ci:build:lib npm run ci:build:app - name: Deploy to GitHub Pages - uses: JamesIves/github-pages-deploy-action@4.2.0 + uses: JamesIves/github-pages-deploy-action@4 with: branch: gh-pages folder: dist/demo-app