diff --git a/README.md b/README.md index df447e2..10c2306 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ jobs: with: fetch-depth: 0 - - uses: Conalh/ScopeTrail@v0.1.6 + - uses: Conalh/ScopeTrail@v0.1.7 with: fail-on: none ``` diff --git a/docs/PILOT.md b/docs/PILOT.md index 0a24c60..129bce7 100644 --- a/docs/PILOT.md +++ b/docs/PILOT.md @@ -23,7 +23,7 @@ jobs: with: fetch-depth: 0 - - uses: Conalh/ScopeTrail@v0.1.6 + - uses: Conalh/ScopeTrail@v0.1.7 with: fail-on: none ``` diff --git a/package-lock.json b/package-lock.json index 84a3346..3df459e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "scopetrail", - "version": "0.1.6", + "version": "0.1.7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "scopetrail", - "version": "0.1.6", + "version": "0.1.7", "license": "MIT", "bin": { "scopetrail": "dist/index.js" diff --git a/package.json b/package.json index 84a99a9..ceab559 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "scopetrail", - "version": "0.1.6", + "version": "0.1.7", "description": "Code review for AI agent permission drift.", "type": "module", "bin": { diff --git a/test/action-metadata.test.mjs b/test/action-metadata.test.mjs index f977f9e..5726b0d 100644 --- a/test/action-metadata.test.mjs +++ b/test/action-metadata.test.mjs @@ -24,11 +24,14 @@ test('GitHub Action metadata exposes PR drift inputs', async () => { assert.match(action, /--format github/); }); -test('README Action install tag matches package version', async () => { +test('public Action install tags match package version', async () => { const readme = await readFile(join(packageRoot, 'README.md'), 'utf8'); + const pilotGuide = await readFile(join(packageRoot, 'docs', 'PILOT.md'), 'utf8'); const packageJson = JSON.parse(await readFile(join(packageRoot, 'package.json'), 'utf8')); const version = packageJson.version; + const installTagPattern = new RegExp(`Conalh/ScopeTrail@v${version.replaceAll('.', '\\.')}`); - assert.equal(version, '0.1.6'); - assert.match(readme, new RegExp(`Conalh/ScopeTrail@v${version.replaceAll('.', '\\.')}`)); + assert.equal(version, '0.1.7'); + assert.match(readme, installTagPattern); + assert.match(pilotGuide, installTagPattern); }); diff --git a/test/public-docs.test.mjs b/test/public-docs.test.mjs index 7283e5a..e39a3df 100644 --- a/test/public-docs.test.mjs +++ b/test/public-docs.test.mjs @@ -69,10 +69,12 @@ test('pilot guide gives external maintainers a complete advisory trial path', as const readme = await readProjectFile('README.md'); const adoption = await readProjectFile('docs', 'ADOPTION.md'); const pilot = await readProjectFile('docs', 'PILOT.md'); + const packageJson = JSON.parse(await readProjectFile('package.json')); + const installTagPattern = new RegExp(`Conalh/ScopeTrail@v${packageJson.version.replaceAll('.', '\\.')}`); assert.match(readme, /\[Pilot guide\]\(docs\/PILOT\.md\)/); assert.match(adoption, /\[Pilot guide\]\(PILOT\.md\)/); - assert.match(pilot, /Conalh\/ScopeTrail@v0\.1\.6/); + assert.match(pilot, installTagPattern); assert.match(pilot, /fail-on:\s*none/); assert.match(pilot, /3-5 pull requests/i); assert.match(pilot, /https:\/\/github\.com\/Conalh\/ScopeTrail\/issues\/18/);