kempo-testing-framework 1.3.3 → 1.3.5

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,9 +1,11 @@
1
+
1
2
  name: Publish Package to npmjs
2
3
 
3
4
  on:
4
- release:
5
- types: [published]
6
- workflow_dispatch: {}
5
+ push:
6
+ branches:
7
+ - main
8
+ workflow_dispatch:
7
9
 
8
10
  jobs:
9
11
  publish:
@@ -13,6 +15,8 @@ jobs:
13
15
  id-token: write # enables npm provenance
14
16
  steps:
15
17
  - uses: actions/checkout@v4
18
+ with:
19
+ token: ${{ secrets.GITHUB_TOKEN }}
16
20
 
17
21
  # Setup Node and create an .npmrc that uses the token from NODE_AUTH_TOKEN
18
22
  - uses: actions/setup-node@v4
@@ -22,6 +26,18 @@ jobs:
22
26
 
23
27
  - run: npm ci
24
28
 
29
+ # Auto-increment patch version, commit, and push
30
+ - name: Bump patch version
31
+ run: |
32
+ git config --global user.name "github-actions"
33
+ git config --global user.email "github-actions@github.com"
34
+ npm version patch --no-git-tag-version
35
+ git add package.json package-lock.json || true
36
+ git commit -m "ci: bump patch version [skip ci]" || echo "No changes to commit"
37
+ git push origin HEAD:main || echo "No changes to push"
38
+ env:
39
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40
+
25
41
  # If your package is public and scoped (e.g., @scope/name), keep --access public.
26
42
  # For unscoped public packages, you can omit --access.
27
43
  - run: npm publish --provenance --access public
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kempo-testing-framework",
3
- "version": "1.3.3",
3
+ "version": "1.3.5",
4
4
  "description": "The Kempo Testing Framework is a simple testing framework built on the principle that code intended to be ran in the browser should be tested in the browser, code intended to be ran in Node should be tested in Node, and code intended to be ran in both should be tested in both. No mocking, no complexity—just testing.",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -17,10 +17,9 @@
17
17
  "dependencies": {
18
18
  "kempo-css": "^1.0.2",
19
19
  "puppeteer": "^24.9.0"
20
+ },
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "https://github.com/dustinpoissant/kempo-testing-framework"
20
24
  }
21
- ,
22
- "repository": {
23
- "type": "git",
24
- "url": "https://github.com/dustinpoissant/kempo-testing-framework"
25
- }
26
25
  }