Skip to content

Commit

Permalink
publish when commit to master
Browse files Browse the repository at this point in the history
  • Loading branch information
codenoobforreal committed Dec 19, 2024
1 parent 13f4649 commit 957cee4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,11 @@ jobs:
- name: Install dependencies
run: npm install

- name: Run CI
run: npm run ci
- name: release
id: changesets
uses: changesets/action@v1
with:
publish: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
"link-cli": "(npm unlink commonflow || true) && npm link",
"build": "tsup",
"check-exports": "attw --pack . --ignore-rules=cjs-resolves-to-esm",
"local-release": "changeset version && changeset publish",
"changeset": "changeset",
"release": "changeset version && changeset publish",
"prepublishOnly": "npm run ci",
"ci": "npm run lint && npm run test && npm run check-format && npm run build && npm run check-exports"
},
Expand Down

0 comments on commit 957cee4

Please sign in to comment.