Skip to content

Commit

Permalink
Merge pull request #4 from charlie-tango/feat/release-flow
Browse files Browse the repository at this point in the history
  • Loading branch information
thebuilder authored Nov 8, 2024
2 parents a7a3ebb + f9de9f0 commit b8eaa82
Show file tree
Hide file tree
Showing 3 changed files with 448 additions and 33 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/pkg-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Publish Pull Requests
on: [push, pull_request]

jobs:
pr-package:
runs-on: ubuntu-latest
steps:
- run: corepack enable
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Publish preview package
run: pnpx pkg-pr-new publish --no-template
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
},
"scripts": {
"test": "eslint .",
"prepublish": "pnpm test"
"prepublish": "pnpm test",
"release": "bumpp && npm publish"
},
"dependencies": {
"@eslint/js": "^9.13.0",
Expand All @@ -37,6 +38,7 @@
"devDependencies": {
"@types/eslint": "^9.6.1",
"@types/eslint__js": "^8.42.3",
"bumpp": "^9.8.1",
"eslint": "^9.13.0",
"prettier": "^3.3.3",
"react": "^18.3.1",
Expand Down
Loading

0 comments on commit b8eaa82

Please sign in to comment.