Skip to content

Commit bd7c78f

Browse files
committed
release
1 parent b18a54e commit bd7c78f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,14 @@ jobs:
2626
registry-url: https://registry.npmjs.org/
2727
cache: "pnpm"
2828
- run: pnpm install
29-
- run: pnpm run build
29+
- run: pnpm build
3030

3131
- name: Create Release Pull Request or Publish to npm
3232
id: changesets
3333
uses: changesets/action@v1
34+
with:
35+
# This expects you to have a script called release which does a build for your packages and calls changeset publish
36+
publish: pnpm release
3437
env:
3538
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3639
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"docs:serve": "pnpm run -F docs serve",
66
"dev": "pnpm run -F react-image-upload dev",
77
"build": "pnpm run -F react-image-upload build",
8-
"ci:publish": "pnpm publish -r"
8+
"release": "pnpm changeset publish"
99
},
1010
"devDependencies": {
1111
"@changesets/cli": "^2.27.10"

0 commit comments

Comments
 (0)