Skip to content

Commit 57a6ab1

Browse files
authored
Fix extension publish action (#3860)
1 parent 36dff33 commit 57a6ab1

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/marketplace-publish.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
env:
88
GIT_REF: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || 'main' }}
99
NODE_VERSION: 20.18.1
10+
PNPM_VERSION: 10.8.1
1011

1112
jobs:
1213
publish-extension:
@@ -19,17 +20,25 @@ jobs:
1920
contains(github.event.pull_request.title, 'Changeset version bump') ) ||
2021
github.event_name == 'workflow_dispatch'
2122
steps:
23+
- name: Checkout code
2224
- uses: actions/checkout@v4
2325
with:
2426
ref: ${{ env.GIT_REF }}
25-
- uses: actions/setup-node@v4
27+
- name: Install pnpm
28+
uses: pnpm/action-setup@v4
29+
with:
30+
version: ${{ env.PNPM_VERSION }}
31+
- name: Setup Node.js
32+
uses: actions/setup-node@v4
2633
with:
2734
node-version: ${{ env.NODE_VERSION }}
28-
- run: |
35+
cache: 'pnpm'
36+
- name: Install dependencies
37+
run: pnpm install
38+
- name: Configure Git
39+
run: |
2940
git config user.name "github-actions[bot]"
3041
git config user.email "github-actions[bot]@users.noreply.github.com"
31-
- name: Install Dependencies
32-
run: pnpm install
3342
- name: Create .env file
3443
run: echo "POSTHOG_API_KEY=${{ secrets.POSTHOG_API_KEY }}" >> .env
3544
- name: Package Extension

0 commit comments

Comments
 (0)