diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1de4909..f0ce4a8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,12 +22,18 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Build - run: | - npm install - npm run gh-pages-build + - uses: actions/checkout@v4 + # Setup .npmrc file to publish to npm + - uses: actions/setup-node@v4 + with: + node-version: '22.x' + registry-url: 'https://registry.npmjs.org' + - run: corepack enable pnpm + - run: npm install --global corepack@latest + - run: pnpm install --frozen-lockfile + - run: pnpm run gh-pages-build + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: