From 9cea227399d015de393a2e51b198dc05989eb93b Mon Sep 17 00:00:00 2001 From: Sophia Marie Terry Date: Fri, 1 Aug 2025 12:15:23 +0100 Subject: [PATCH 1/5] version bump and changelog config edits --- tools/spectral/ipa/CHANGELOG.md | 1 - tools/spectral/ipa/package-lock.json | 4 ++-- tools/spectral/ipa/package.json | 13 +++++++++---- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/tools/spectral/ipa/CHANGELOG.md b/tools/spectral/ipa/CHANGELOG.md index bd48566089..f4ef532bb3 100644 --- a/tools/spectral/ipa/CHANGELOG.md +++ b/tools/spectral/ipa/CHANGELOG.md @@ -2,4 +2,3 @@ All notable changes to this project will be documented in this file. Dates are displayed in UTC. -Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). diff --git a/tools/spectral/ipa/package-lock.json b/tools/spectral/ipa/package-lock.json index 8f2e7cbd5c..f3cf715877 100644 --- a/tools/spectral/ipa/package-lock.json +++ b/tools/spectral/ipa/package-lock.json @@ -1,12 +1,12 @@ { "name": "@mongodb-js/ipa-validation-ruleset", - "version": "0.0.1-dev1", + "version": "0.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@mongodb-js/ipa-validation-ruleset", - "version": "0.0.1-dev1", + "version": "0.0.1", "license": "Apache-2.0", "dependencies": { "@stoplight/spectral-cli": "6.15.0", diff --git a/tools/spectral/ipa/package.json b/tools/spectral/ipa/package.json index 4a467a12c5..fd90db63ee 100644 --- a/tools/spectral/ipa/package.json +++ b/tools/spectral/ipa/package.json @@ -1,6 +1,6 @@ { "name": "@mongodb-js/ipa-validation-ruleset", - "version": "0.0.1-dev1", + "version": "0.0.1", "description": "Custom validation rules for MongoDB API Standards (IPA).", "keywords": [ "mongodb", @@ -36,8 +36,13 @@ }, "auto-changelog" : { "package" : true, - "commitPattern" : "[a-z]+(ipa): ", - "startingVersion" : "0.1.0", - "hideEmptyReleases" : true + "commitPattern": "[a-z]+\\(ipa\\):", + "since" : "2025-08-02", + "hideCredit": true, + "tagPattern": "none", + "hideEmptyReleases" : true, + "unreleasedOnly" : true, + "contributors": false, + "changeCount": 0 } } From e596c3bf006ef29b8f78e0f380fdf91556cbb19d Mon Sep 17 00:00:00 2001 From: Sophia Marie Terry Date: Fri, 1 Aug 2025 13:39:32 +0100 Subject: [PATCH 2/5] Fix changelog gen --- tools/spectral/ipa/CHANGELOG.md | 1 - tools/spectral/ipa/package.json | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/spectral/ipa/CHANGELOG.md b/tools/spectral/ipa/CHANGELOG.md index f4ef532bb3..f12fcce303 100644 --- a/tools/spectral/ipa/CHANGELOG.md +++ b/tools/spectral/ipa/CHANGELOG.md @@ -1,4 +1,3 @@ ### Changelog All notable changes to this project will be documented in this file. Dates are displayed in UTC. - diff --git a/tools/spectral/ipa/package.json b/tools/spectral/ipa/package.json index fd90db63ee..a2ee5943c7 100644 --- a/tools/spectral/ipa/package.json +++ b/tools/spectral/ipa/package.json @@ -37,11 +37,10 @@ "auto-changelog" : { "package" : true, "commitPattern": "[a-z]+\\(ipa\\):", - "since" : "2025-08-02", + "startingVersion" : "0.0.1", "hideCredit": true, "tagPattern": "none", "hideEmptyReleases" : true, - "unreleasedOnly" : true, "contributors": false, "changeCount": 0 } From d5260ff774686e7dc2d1e07e18d0ea377fe34266 Mon Sep 17 00:00:00 2001 From: Sophia Marie Terry Date: Fri, 1 Aug 2025 16:24:53 +0100 Subject: [PATCH 3/5] Reintroduce publish action --- .github/workflows/ipa-release.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ipa-release.yml b/.github/workflows/ipa-release.yml index 2d89e61aaf..9b582c7e46 100644 --- a/.github/workflows/ipa-release.yml +++ b/.github/workflows/ipa-release.yml @@ -47,8 +47,7 @@ jobs: registry-url: 'https://registry.npmjs.org' - run: npm ci working-directory: tools/spectral/ipa - - run: | - echo "Testing for publish workflow" - #working-directory: tools/spectral/ipa - #env: - #NODE_AUTH_TOKEN: ${{ secrets.IPA_VALIDATION_TOKEN }} \ No newline at end of file + - run: npm publish --access public + working-directory: tools/spectral/ipa + env: + NODE_AUTH_TOKEN: ${{ secrets.IPA_VALIDATION_TOKEN }} \ No newline at end of file From 93361a9dcb98482111bada11f6b6162389f8d93b Mon Sep 17 00:00:00 2001 From: Sophia Marie Terry Date: Fri, 1 Aug 2025 16:29:30 +0100 Subject: [PATCH 4/5] Pipe to output instead of env --- .github/workflows/ipa-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ipa-release.yml b/.github/workflows/ipa-release.yml index 9b582c7e46..82cdece24d 100644 --- a/.github/workflows/ipa-release.yml +++ b/.github/workflows/ipa-release.yml @@ -29,7 +29,7 @@ jobs: run: | version_changed=$(./.github/scripts/ipa_version_check.sh) echo "Version changed? ${version_changed}" - echo "version_changed=${version_changed}" >> "${GITHUB_ENV}" + echo "version_changed=${version_changed}" >> "${GITHUB_OUTPUT}" publish: needs: check-version From 4c368a4f07b791c19ef17b6c1f918e8d0eefcdd3 Mon Sep 17 00:00:00 2001 From: Sophia Marie Terry Date: Fri, 1 Aug 2025 16:33:21 +0100 Subject: [PATCH 5/5] Rollback version and disable release --- .github/workflows/ipa-release.yml | 9 +++++---- tools/spectral/ipa/package-lock.json | 4 ++-- tools/spectral/ipa/package.json | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ipa-release.yml b/.github/workflows/ipa-release.yml index 82cdece24d..41a032beec 100644 --- a/.github/workflows/ipa-release.yml +++ b/.github/workflows/ipa-release.yml @@ -47,7 +47,8 @@ jobs: registry-url: 'https://registry.npmjs.org' - run: npm ci working-directory: tools/spectral/ipa - - run: npm publish --access public - working-directory: tools/spectral/ipa - env: - NODE_AUTH_TOKEN: ${{ secrets.IPA_VALIDATION_TOKEN }} \ No newline at end of file + - run: echo "Test" + #npm publish --access public + #working-directory: tools/spectral/ipa + #env: + #NODE_AUTH_TOKEN: ${{ secrets.IPA_VALIDATION_TOKEN }} \ No newline at end of file diff --git a/tools/spectral/ipa/package-lock.json b/tools/spectral/ipa/package-lock.json index f3cf715877..8f2e7cbd5c 100644 --- a/tools/spectral/ipa/package-lock.json +++ b/tools/spectral/ipa/package-lock.json @@ -1,12 +1,12 @@ { "name": "@mongodb-js/ipa-validation-ruleset", - "version": "0.0.1", + "version": "0.0.1-dev1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@mongodb-js/ipa-validation-ruleset", - "version": "0.0.1", + "version": "0.0.1-dev1", "license": "Apache-2.0", "dependencies": { "@stoplight/spectral-cli": "6.15.0", diff --git a/tools/spectral/ipa/package.json b/tools/spectral/ipa/package.json index a2ee5943c7..1467c4924e 100644 --- a/tools/spectral/ipa/package.json +++ b/tools/spectral/ipa/package.json @@ -1,6 +1,6 @@ { "name": "@mongodb-js/ipa-validation-ruleset", - "version": "0.0.1", + "version": "0.0.1-dev1", "description": "Custom validation rules for MongoDB API Standards (IPA).", "keywords": [ "mongodb",