Skip to content

Commit

Permalink
Merge pull request #3 from neopromic/feat/posthog
Browse files Browse the repository at this point in the history
chore: 🐛 fix the pnpm error on release ci
  • Loading branch information
neopromic authored Nov 22, 2024
2 parents 1d1573c + 47d9472 commit 7307519
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,33 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: "npm"

- name: Install dependencies
run: npm ci
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Verify the integrity of provenance attestations and registry signatures
run: npm audit signatures
- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build
run: npm run build
run: pnpm build

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release
run: pnpm dlx semantic-release

0 comments on commit 7307519

Please sign in to comment.