Skip to content

Commit

Permalink
chore: update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rhnorskov committed Apr 14, 2024
1 parent 334fd45 commit 88d5562
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ jobs:
- name: Install Dependencies
run: pnpm install

- name: Create Release Pull Request or Publish to npm
- name: Publish to npmjs
id: changesets
uses: changesets/action@v1
with:
publish: pnpm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 3 additions & 0 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"url": "https://github.com/rhnorskov/config"
},
"main": "index.js",
"scripts": {
"release": "npx changesets publish"
},
"peerDependencies": {
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
Expand Down
3 changes: 3 additions & 0 deletions packages/prettier-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"url": "https://github.com/rhnorskov/config"
},
"main": "index.js",
"scripts": {
"release": "npx changesets publish"
},
"peerDependencies": {
"prettier": "^2.8.0"
}
Expand Down

0 comments on commit 88d5562

Please sign in to comment.