Skip to content

Commit f399117

Browse files
committed
Fix changesets release, publish, tag
1 parent 790b372 commit f399117

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/release.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@ name: Release
22

33
on:
44
push:
5-
# branches:
6-
# - main
7-
tags:
8-
- 'v*'
5+
branches:
6+
- main
97
env:
108
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
119

@@ -41,8 +39,8 @@ jobs:
4139
- uses: changesets/action@v1
4240
with:
4341
cwd: packages/workflow
44-
title: 'Release @latest'
45-
publish: pnpm publish --access public --provenance --no-git-checks
42+
title: "Release @latest"
43+
publish: pnpm run release
4644
env:
4745
GITHUB_TOKEN: ${{ secrets.CHANGESET_GITHUB_TOKEN }}
4846
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

packages/workflow/package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44
"description": "Durable visual workflows in your app, instantly",
55
"main": "dist/index.js",
66
"scripts": {
7+
"changeset": "changeset",
78
"build": "rm -rf dist && tsc && cp src/ui/ui.css dist/ui/ui.css",
89
"test": "jest --logHeapUsage --maxWorkers=8 --coverage --ci --silent=false",
910
"storybook": "storybook dev -p 6006",
10-
"build-storybook": "storybook build"
11+
"build-storybook": "storybook build",
12+
"release": "npm publish --access public --provenance && changeset tag && git push --follow-tags origin main"
1113
},
1214
"homepage": "https://github.com/inngest/workflow-kit/tree/main/packages/workflow#readme",
1315
"repository": {

0 commit comments

Comments
 (0)