diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 603cbb2..175b67d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -55,6 +55,10 @@ jobs: name: Publish to npm needs: build runs-on: ubuntu-latest + # Waits for the maintainer's approval on GitHub: a pushed tag alone + # publishes nothing. + environment: release + # The wait for the approval is not counted in a job's own time limit. timeout-minutes: 10 permissions: # For npm's trusted publishing, and nothing else. diff --git a/AGENTS.md b/AGENTS.md index c252e2a..bb8ef29 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -26,4 +26,4 @@ Every change reaches `main` through a pull request, merged with a squash once CI ## Releases -Bump `version` in `package.json` and add its entry to `CHANGELOG.md`, then push a `vX.Y.Z` tag that matches. `.github/workflows/publish.yml` publishes it with npm's trusted publishing and a provenance statement; no token is stored anywhere. The workflow has three jobs with one permission each: the job that runs the toolchain can't publish, and the job that publishes runs none of the project's code. Every action in a workflow is pinned to a full commit SHA, with its version in a comment; Dependabot moves them. A breaking change to what any function accepts is a major version. +Bump `version` in `package.json` and add its entry to `CHANGELOG.md`, then push a `vX.Y.Z` tag that matches. `.github/workflows/publish.yml` publishes it with npm's trusted publishing and a provenance statement; no token is stored anywhere. The workflow has three jobs with one permission each: the job that runs the toolchain can't publish, and the job that publishes runs none of the project's code. The publish job runs in the `release` environment, so it waits for the maintainer's approval on GitHub before anything reaches npm. Every action in a workflow is pinned to a full commit SHA, with its version in a comment; Dependabot moves them. A breaking change to what any function accepts is a major version. diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c82346..d8f6696 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Registro de cambios +## 2.0.1 + +Sin cambios en el código de la librería. + +- La publicación sale de tres trabajos con un solo permiso cada uno y espera la aprobación del autor. + ## 2.0.0 Las reglas siguen ahora lo que publica el SRI, y algunas respuestas cambian. diff --git a/package.json b/package.json index 2798643..9bc83fc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "validator-ec", - "version": "2.0.0", + "version": "2.0.1", "description": "Validar cédula y RUC de Ecuador según el SRI, y saber por qué fallan. Validate Ecuadorian cédula (cedula) and RUC numbers. TypeScript, sin dependencias.", "keywords": [ "cedula",