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
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
with:
node-version: 22.x
cache: npm
- run: npm install -g npm@latest
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Pin npm version in publish workflow

Installing npm@latest makes release behavior non-deterministic and can break tag publishes as soon as npm ships a new major with changed defaults or Node engine requirements; this job runs on every v* tag, so a future npm release can fail publishing without any repo change. npm’s trusted publishing docs only require a minimum npm version (>=11.5.1), so pinning to a known-compatible major/minor (instead of latest) avoids unexpected CI regressions.

Useful? React with 👍 / 👎.

- run: npm ci
- run: npm run build
- run: npm publish --provenance
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ssntpl/otper-cli",
"version": "0.1.3",
"version": "0.1.4",
"description": "Command-line interface for Otper boards (https://otper.com).",
"author": "SSNTPL <info@ssntpl.com>",
"license": "MIT",
Expand Down
Loading