From ca1cde2864eb626ad2f66df4952621332f013105 Mon Sep 17 00:00:00 2001 From: Mohsen-MSK Date: Mon, 19 Aug 2024 20:16:25 +0330 Subject: [PATCH] Update workflow --- .github/workflows/main.yml | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 37fb5bd..0a5bcc7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,44 +10,46 @@ jobs: build: name: Build runs-on: ubuntu-latest - + steps: - name: Syncing repository - uses: actions/checkout@v3 - + uses: actions/checkout@v4 + - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: + node-version: 20.14.0 cache: 'npm' - + - name: Install Dependencies run: npm ci - + - name: Build Application run: npm run build-demo - + - name: Upload artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: dist path: dist/ - + test: name: Test runs-on: ubuntu-latest - + steps: - name: Syncing repository - uses: actions/checkout@v3 - + uses: actions/checkout@v4 + - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: + node-version: 20.14.0 cache: 'npm' - + - name: Install Dependencies run: npm ci - + - name: Test Lib run: npm run test-lib - name: Test Demo @@ -63,13 +65,13 @@ jobs: steps: - name: Download artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: dist path: dist/ - name: Deploy demo - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: dist/angular-touch-keyboard