diff --git a/.github/workflows/dreamhost.yml b/.github/workflows/dreamhost.yml index 06e5895..c044ef5 100644 --- a/.github/workflows/dreamhost.yml +++ b/.github/workflows/dreamhost.yml @@ -13,36 +13,25 @@ jobs: if: ${{ !contains(github.event.head_commit.message, '#skipGA') }} steps: - - uses: actions/checkout@v6 + - name: Install rsync + run: | + apt-get update + apt-get install rsync + + - name: Checkout code + uses: actions/checkout@v6 - name: Cache node modules id: cache-npm - uses: actions/cache@v5 + uses: actions/setup-node@v6 env: cache-name: cache-node-modules with: - # npm cache files are stored in `~/.npm` on Linux/macOS - path: ~/.npm - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-build-${{ env.cache-name }}- - ${{ runner.os }}-build- - ${{ runner.os }}- - - - name: Install npm dependencies - run: npm install + node-version: "22" - name: Run build task run: npm run build - - name: Clean up node modules (not needed to deploy) - run: rm -rf node_modules - - - name: Install rsync - run: | - sudo apt-get update - sudo apt-get install rsync - - name: Deploy to Dreamhost uses: SamKirkland/web-deploy@v1 with: