From 5951d907a1c5f81c84c0545fc9bd2256bd46c0c0 Mon Sep 17 00:00:00 2001 From: "Tiago Siebler @ Siebly.io" Date: Tue, 1 Sep 2026 15:01:37 +0100 Subject: [PATCH] fix: accept exact-save npm policy --- .github/workflows/npmpublish.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index db583e9..81a8928 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -67,8 +67,12 @@ jobs: process.exit(1); } - if (readFileSync('.npmrc', 'utf8') !== 'min-release-age=30\n') { - console.error('Root .npmrc must contain exactly: min-release-age=30'); + const expectedNpmPolicy = 'min-release-age=30\nsave-exact=true\n'; + + if (readFileSync('.npmrc', 'utf8') !== expectedNpmPolicy) { + console.error( + 'Root .npmrc must contain exactly: min-release-age=30 and save-exact=true', + ); process.exit(1); } NODE