diff --git a/.github/workflows/buildAndDeploy.yml b/.github/workflows/buildAndDeploy.yml index 06bd855..e2ff2e2 100644 --- a/.github/workflows/buildAndDeploy.yml +++ b/.github/workflows/buildAndDeploy.yml @@ -1,6 +1,7 @@ name: Build and Deploy on: workflow_dispatch + jobs: build-and-deploy: runs-on: ubuntu-latest @@ -9,18 +10,24 @@ jobs: node-version: [18.x] steps: - name: Checkout 🛎️ - uses: actions/checkout@v2.3.1 + uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} + + - name: Clear npm cache + run: npm cache clean --force + - name: Install and Build 🔧 run: | + export NODE_OPTIONS=--openssl-legacy-provider npm ci npm run build - name: Deploy 🚀 - uses: JamesIves/github-pages-deploy-action@4.1.3 + uses: JamesIves/github-pages-deploy-action@v4 with: - branch: gh-pages # The branch the action should deploy to. - folder: build # The folder the action should deploy. + branch: gh-pages + folder: build