Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Loading