Skip to content

Commit

Permalink
Add workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Dec 4, 2024
1 parent 76f3eca commit bb43935
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ jobs:
with:
cache: yarn
- run: yarn install
- run: changeset status --since=master
- run: yarn changeset status --since=master
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Release
on:
workflow_dispatch:
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: yarn
- run: yarn install
- uses: changesets/action@v1
with:
publish: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"generate:types": "node ./bin/generateTypes.mjs",
"test": "jest --colors --logHeapUsage",
"format": "prettier --write .",
"release": "yarn run pack && yarn run check && changeset version && changeset publish",
"release": "yarn run pack && changeset publish",
"type": "tsc --build"
},
"engines": {
Expand Down

0 comments on commit bb43935

Please sign in to comment.