Skip to content

Commit 6ed505b

Browse files
author
Ondrej Machala
committed
fix: add publish step to release workflow for proper GitHub releases
1 parent 0650732 commit 6ed505b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,21 @@ jobs:
2020
with:
2121
node-version: 20
2222
cache: pnpm
23+
registry-url: 'https://registry.npmjs.org'
2324

2425
- run: pnpm install --frozen-lockfile
2526

26-
- name: Create Release PR
27+
- name: Build
28+
run: pnpm build && pnpm build:toolbar
29+
30+
- name: Create Release PR or Publish
2731
uses: changesets/action@v1
2832
with:
2933
title: 'chore: release'
3034
commit: 'chore: release'
35+
publish: pnpm changeset publish
36+
createGithubReleases: true
3137
env:
3238
GITHUB_TOKEN: ${{ secrets.PAT }}
39+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
40+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)