diff --git a/.github/workflows/marketplace-publish.yml b/.github/workflows/marketplace-publish.yml index 0ea5090713..c4621952bf 100644 --- a/.github/workflows/marketplace-publish.yml +++ b/.github/workflows/marketplace-publish.yml @@ -7,6 +7,7 @@ on: env: GIT_REF: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || 'main' }} NODE_VERSION: 20.18.1 + PNPM_VERSION: 10.8.1 jobs: publish-extension: @@ -19,17 +20,25 @@ jobs: contains(github.event.pull_request.title, 'Changeset version bump') ) || github.event_name == 'workflow_dispatch' steps: + - name: Checkout code - uses: actions/checkout@v4 with: ref: ${{ env.GIT_REF }} - - uses: actions/setup-node@v4 + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: ${{ env.PNPM_VERSION }} + - name: Setup Node.js + uses: actions/setup-node@v4 with: node-version: ${{ env.NODE_VERSION }} - - run: | + cache: 'pnpm' + - name: Install dependencies + run: pnpm install + - name: Configure Git + run: | git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" - - name: Install Dependencies - run: pnpm install - name: Create .env file run: echo "POSTHOG_API_KEY=${{ secrets.POSTHOG_API_KEY }}" >> .env - name: Package Extension