diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f75b748..4bf19c6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,6 +12,7 @@ permissions: contents: read pages: write id-token: write + packages: read # Allow one concurrent deployment concurrency: @@ -25,24 +26,21 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Cache pnpm modules - uses: actions/cache@v2 + - name: Setup node and npm + uses: actions/setup-node@v3 with: - path: ~/.pnpm-store - key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}- + node-version: 18 + cache: npm + registry-url: "https://npm.pkg.github.com" - - name: Install pnpm - uses: pnpm/action-setup@v2.2.2 - with: - version: latest - - - name: Setup pnpm - run: pnpm install + - name: Install npm dependencies + run: "npm ci --ignore-scripts" + shell: bash + env: + NODE_AUTH_TOKEN: ${{ github.token }} - name: Build with adapter static - run: pnpm run build + run: npm run build - name: Setup Pages uses: actions/configure-pages@v2