@usgb/forms 0.1.0 → 0.1.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.
Files changed (2) hide show
  1. package/README.md +6 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -7,7 +7,7 @@ Sample React package that builds with [tsup](https://tsup.egoist.dev/) and publi
7
7
  - React 18+ form primitives (`Form`, `TextField`) with TypeScript types
8
8
  - Dual ESM/CJS build output in `dist/`
9
9
  - CI on pull requests
10
- - Manual publish from GitHub Actions via OIDC (no git tags)
10
+ - Publish to npm on every push to `main` via OIDC (no git tags)
11
11
 
12
12
  ## Local development
13
13
 
@@ -68,7 +68,7 @@ Create a GitHub environment named `npm-publish` and add required reviewers if yo
68
68
 
69
69
  ### 5. Release
70
70
 
71
- Bump `version` in `package.json` without creating a git tag, then run the publish workflow from the Actions tab.
71
+ Bump `version` in `package.json` without creating a git tag, then push to `main`. That push runs [`.github/workflows/publish.yml`](.github/workflows/publish.yml).
72
72
 
73
73
  ```bash
74
74
  npm version patch --no-git-tag-version # or minor / major
@@ -77,12 +77,14 @@ git commit -m "Release 0.1.1"
77
77
  git push origin main
78
78
  ```
79
79
 
80
- In GitHub, open **Actions → Publish Package → Run workflow** and run it on `main`. [`.github/workflows/publish.yml`](.github/workflows/publish.yml) then:
80
+ The workflow:
81
81
 
82
82
  1. Requests `id-token: write` so Actions can mint an OIDC token
83
83
  2. Installs Node 24 (ships npm 11.x)
84
84
  3. Runs tests and the library build
85
- 4. Publishes the version already in `package.json` with **no token secret**
85
+ 4. Publishes the version in `package.json` with **no token secret**, or skips if that version is already on npm
86
+
87
+ Pushes to `main` that do not change the version still run the workflow; they skip `npm publish` so the job stays green.
86
88
 
87
89
  npm automatically attaches [provenance](https://docs.npmjs.com/generating-provenance-statements/) for public packages published from a public repository. Do not pass `--provenance`; the CLI enables it when OIDC publishing is in use.
88
90
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usgb/forms",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Sample React form components published to npm with OIDC trusted publishing.",
5
5
  "license": "MIT",
6
6
  "type": "module",