diff --git a/.github/workflows/publish-commit.yaml b/.github/workflows/publish-commit.yaml new file mode 100644 index 0000000..77f25b2 --- /dev/null +++ b/.github/workflows/publish-commit.yaml @@ -0,0 +1,24 @@ +name: 🚀 pkg-pr-new +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - run: corepack enable + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: "npm" + + - name: Install dependencies + run: npm install + + - name: Build + run: npm run build + + - run: npx pkg-pr-new publish diff --git a/.gitignore b/.gitignore index 95fe9ca..5770ade 100644 --- a/.gitignore +++ b/.gitignore @@ -136,6 +136,3 @@ dist # IDE .idea .tsup - -# Github -.github/workflows/publish-commit.yaml \ No newline at end of file diff --git a/knip.json b/knip.json index 129c179..0d0cd8d 100644 --- a/knip.json +++ b/knip.json @@ -3,5 +3,6 @@ "entry": ["src/*.{ts,js}", "scripts/*.{ts,js}"], "project": ["**/*.{js,cjs,mjs,jsx,ts,cts,mts,tsx}"], "ignore": ["test-apps/**", "src/external/**", "docs/**", "plugins/**", "tsup*.ts", "**/rdtReducer.ts"], - "ignoreWorkspaces": ["test-apps/**", "docs/**"] + "ignoreWorkspaces": ["test-apps/**", "docs/**"], + "ignoreBinaries": ["pkg-pr-new"] }