diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 36e4f85..6829ea7 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -21,22 +21,17 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - cache: 'yarn' - - - name: Install Dependencies with Yarn - run: yarn install - - - name: Build the Project - run: yarn build --if-present - + cache: 'npm' + - run: npm install + - run: npm ci + - run: npm run build --if-present - name: Deploy with gh-pages run: | git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git - yarn deploy -- -u "github-actions-bot " + npm run deploy -- -u "github-actions-bot " env: GITHUB_TOKEN: ${{ secrets.DEPLOY_SITE }}