pruny 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,37 +1,22 @@
1
1
  name: Publish to npm
2
2
 
3
3
  on:
4
+ push:
5
+ branches:
6
+ - main
4
7
  release:
5
8
  types: [created]
6
- push:
7
- tags:
8
- - "v*"
9
9
 
10
10
  jobs:
11
- build:
12
- runs-on: ubuntu-latest
13
- steps:
14
- - uses: actions/checkout@v4
15
-
16
- - name: Setup Bun
17
- uses: oven-sh/setup-bun@v2
18
- with:
19
- bun-version: latest
20
-
21
- - name: Install dependencies
22
- run: bun install
23
-
24
- - name: Build
25
- run: bun run build
26
-
27
11
  publish:
28
- needs: build
29
12
  runs-on: ubuntu-latest
30
13
  permissions:
31
- contents: read
14
+ contents: write
32
15
  id-token: write
33
16
  steps:
34
17
  - uses: actions/checkout@v4
18
+ with:
19
+ fetch-depth: 0
35
20
 
36
21
  - name: Setup Bun
37
22
  uses: oven-sh/setup-bun@v2
@@ -50,6 +35,16 @@ jobs:
50
35
  - name: Build
51
36
  run: bun run build
52
37
 
38
+ - name: Auto-bump patch version
39
+ if: github.event_name == 'push'
40
+ run: |
41
+ git config user.name "github-actions[bot]"
42
+ git config user.email "github-actions[bot]@users.noreply.github.com"
43
+ npm version patch --no-git-tag-version
44
+ git add package.json
45
+ git commit -m "chore: bump version [skip ci]"
46
+ git push
47
+
53
48
  - name: Publish to npm
54
49
  run: npm publish --access public
55
50
  env:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pruny",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Find and remove unused Next.js API routes",
5
5
  "type": "module",
6
6
  "bin": {