From ea22c880d7bfd3003c099d53b11259c1fa59ab51 Mon Sep 17 00:00:00 2001 From: sebastien Date: Fri, 30 Jan 2026 19:07:03 +0100 Subject: [PATCH 01/10] test trusted publishers --- .github/workflows/canary-release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/canary-release.yml b/.github/workflows/canary-release.yml index 0356990c5e61..4cd7dae285eb 100644 --- a/.github/workflows/canary-release.yml +++ b/.github/workflows/canary-release.yml @@ -6,6 +6,7 @@ on: branches: - main - docusaurus-v** + - slorber/test-canary-trusted-publisher paths: - .github/workflows/canary-release.yml - package.json @@ -13,6 +14,7 @@ on: permissions: contents: read + id-token: write # For OIDC, see https://docs.npmjs.com/trusted-publishers jobs: publish-canary: From fb8c4127bd04b198cee735ba0a942c0666ccba7d Mon Sep 17 00:00:00 2001 From: sebastien Date: Fri, 30 Jan 2026 19:14:47 +0100 Subject: [PATCH 02/10] remove npm token env --- .github/workflows/canary-release.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/canary-release.yml b/.github/workflows/canary-release.yml index 4cd7dae285eb..0dc0405c68e6 100644 --- a/.github/workflows/canary-release.yml +++ b/.github/workflows/canary-release.yml @@ -36,16 +36,10 @@ jobs: git config --global user.email "canary@docusaurus.io" git fetch git checkout main - echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> .npmrc - cat .npmrc echo "npm whoami" npm whoami - env: - NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} - name: Installation run: yarn || yarn || yarn - name: Publish Canary release run: | yarn canary - env: - NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} From 8b5073b0060e813a24607963baff57a29fb5f966 Mon Sep 17 00:00:00 2001 From: sebastien Date: Fri, 30 Jan 2026 19:22:20 +0100 Subject: [PATCH 03/10] remove npm whoami --- .github/workflows/canary-release.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/canary-release.yml b/.github/workflows/canary-release.yml index 0dc0405c68e6..b342e9c4aa5b 100644 --- a/.github/workflows/canary-release.yml +++ b/.github/workflows/canary-release.yml @@ -36,8 +36,6 @@ jobs: git config --global user.email "canary@docusaurus.io" git fetch git checkout main - echo "npm whoami" - npm whoami - name: Installation run: yarn || yarn || yarn - name: Publish Canary release From efb438ee4d472f116f38d710af1f9b2d42896fc4 Mon Sep 17 00:00:00 2001 From: sebastien Date: Fri, 30 Jan 2026 19:39:09 +0100 Subject: [PATCH 04/10] test publish --- .github/workflows/canary-release.yml | 5 +++++ packages/stylelint-copyright/package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/canary-release.yml b/.github/workflows/canary-release.yml index b342e9c4aa5b..763409b7b5da 100644 --- a/.github/workflows/canary-release.yml +++ b/.github/workflows/canary-release.yml @@ -36,6 +36,11 @@ jobs: git config --global user.email "canary@docusaurus.io" git fetch git checkout main + + - name: TEST PUBLISH + run: | + cd packages/stylelint-copyright + npm publish - name: Installation run: yarn || yarn || yarn - name: Publish Canary release diff --git a/packages/stylelint-copyright/package.json b/packages/stylelint-copyright/package.json index ad120b3f7b05..0e9b708ca30c 100644 --- a/packages/stylelint-copyright/package.json +++ b/packages/stylelint-copyright/package.json @@ -1,6 +1,6 @@ { "name": "stylelint-copyright", - "version": "3.9.2", + "version": "0.0.0-4753", "description": "Stylelint plugin to check CSS files for a copyright header.", "main": "lib/index.js", "license": "MIT", From f444ee49c92c7ac62fc8a38dca9e84f0222f35eb Mon Sep 17 00:00:00 2001 From: sebastien Date: Fri, 30 Jan 2026 19:50:37 +0100 Subject: [PATCH 05/10] test publish --- .github/workflows/canary-release.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/canary-release.yml b/.github/workflows/canary-release.yml index 763409b7b5da..0404f3f5e574 100644 --- a/.github/workflows/canary-release.yml +++ b/.github/workflows/canary-release.yml @@ -25,11 +25,17 @@ jobs: uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: fetch-depth: 0 # Needed to get the commit number with "git rev-list --count HEAD" + - name: Set up Node uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0 with: node-version: lts/* cache: yarn + + # Ensure npm 11.5.1 or later is installed for OIDC + - name: Update npm + run: npm install -g npm@latest + - name: Prepare git run: | git config --global user.name "Docusaurus Canary" @@ -41,8 +47,10 @@ jobs: run: | cd packages/stylelint-copyright npm publish + - name: Installation run: yarn || yarn || yarn + - name: Publish Canary release run: | yarn canary From 1a4dd6f816de58b7dd3e5c270440e38f956110c2 Mon Sep 17 00:00:00 2001 From: sebastien Date: Fri, 30 Jan 2026 19:52:45 +0100 Subject: [PATCH 06/10] test publish --- .github/workflows/canary-release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/canary-release.yml b/.github/workflows/canary-release.yml index 0404f3f5e574..0496dfbce547 100644 --- a/.github/workflows/canary-release.yml +++ b/.github/workflows/canary-release.yml @@ -34,7 +34,9 @@ jobs: # Ensure npm 11.5.1 or later is installed for OIDC - name: Update npm - run: npm install -g npm@latest + run: | + npm install -g npm@latest + npm --version - name: Prepare git run: | From 2e3fa4439edab53a133881cda1155754cb19c48f Mon Sep 17 00:00:00 2001 From: sebastien Date: Fri, 30 Jan 2026 20:01:27 +0100 Subject: [PATCH 07/10] test publish --- .github/workflows/canary-release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/canary-release.yml b/.github/workflows/canary-release.yml index 0496dfbce547..855bb7b4f03c 100644 --- a/.github/workflows/canary-release.yml +++ b/.github/workflows/canary-release.yml @@ -44,10 +44,12 @@ jobs: git config --global user.email "canary@docusaurus.io" git fetch git checkout main + git log - name: TEST PUBLISH run: | cd packages/stylelint-copyright + cat package.json npm publish - name: Installation From d5346558d59be2e4b6ca6c917059094e92327db7 Mon Sep 17 00:00:00 2001 From: sebastien Date: Fri, 30 Jan 2026 20:06:51 +0100 Subject: [PATCH 08/10] test publish --- .github/workflows/canary-release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/canary-release.yml b/.github/workflows/canary-release.yml index 855bb7b4f03c..b89c8b28a0d1 100644 --- a/.github/workflows/canary-release.yml +++ b/.github/workflows/canary-release.yml @@ -25,6 +25,7 @@ jobs: uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: fetch-depth: 0 # Needed to get the commit number with "git rev-list --count HEAD" + ref: ${{ github.head_ref }} # TODO temp - name: Set up Node uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0 From 4b05d2dac47180b0b036395e7d0916e32c0371d7 Mon Sep 17 00:00:00 2001 From: sebastien Date: Fri, 30 Jan 2026 20:15:38 +0100 Subject: [PATCH 09/10] test publish --- .github/workflows/canary-release.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/canary-release.yml b/.github/workflows/canary-release.yml index b89c8b28a0d1..3b84ea2e4268 100644 --- a/.github/workflows/canary-release.yml +++ b/.github/workflows/canary-release.yml @@ -25,7 +25,6 @@ jobs: uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: fetch-depth: 0 # Needed to get the commit number with "git rev-list --count HEAD" - ref: ${{ github.head_ref }} # TODO temp - name: Set up Node uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0 @@ -44,7 +43,7 @@ jobs: git config --global user.name "Docusaurus Canary" git config --global user.email "canary@docusaurus.io" git fetch - git checkout main + git checkout git log - name: TEST PUBLISH From bc7ebcf6498430ff91a525e06675349544fc354d Mon Sep 17 00:00:00 2001 From: sebastien Date: Fri, 30 Jan 2026 20:21:03 +0100 Subject: [PATCH 10/10] test publish --- .github/workflows/canary-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/canary-release.yml b/.github/workflows/canary-release.yml index 3b84ea2e4268..302f992f7c2a 100644 --- a/.github/workflows/canary-release.yml +++ b/.github/workflows/canary-release.yml @@ -50,7 +50,7 @@ jobs: run: | cd packages/stylelint-copyright cat package.json - npm publish + npm publish --tag TEST - name: Installation run: yarn || yarn || yarn