Skip to content

Commit

Permalink
Fix changesets release, publish, tag
Browse files Browse the repository at this point in the history
  • Loading branch information
jpwilliams committed Sep 25, 2024
1 parent 790b372 commit f399117
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ name: Release

on:
push:
# branches:
# - main
tags:
- 'v*'
branches:
- main
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Expand Down Expand Up @@ -41,8 +39,8 @@ jobs:
- uses: changesets/action@v1
with:
cwd: packages/workflow
title: 'Release @latest'
publish: pnpm publish --access public --provenance --no-git-checks
title: "Release @latest"
publish: pnpm run release
env:
GITHUB_TOKEN: ${{ secrets.CHANGESET_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
4 changes: 3 additions & 1 deletion packages/workflow/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
"description": "Durable visual workflows in your app, instantly",
"main": "dist/index.js",
"scripts": {
"changeset": "changeset",
"build": "rm -rf dist && tsc && cp src/ui/ui.css dist/ui/ui.css",
"test": "jest --logHeapUsage --maxWorkers=8 --coverage --ci --silent=false",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build"
"build-storybook": "storybook build",
"release": "npm publish --access public --provenance && changeset tag && git push --follow-tags origin main"
},
"homepage": "https://github.com/inngest/workflow-kit/tree/main/packages/workflow#readme",
"repository": {
Expand Down

0 comments on commit f399117

Please sign in to comment.