From 1b9910661fee27c53fcb16813b96eb420d120c78 Mon Sep 17 00:00:00 2001 From: Roberto Vidal Date: Wed, 10 Sep 2025 22:09:24 +0200 Subject: [PATCH] fix: gitlab example for trusted publishing --- .../securing-your-code/trusted-publishers.mdx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/content/packages-and-modules/securing-your-code/trusted-publishers.mdx b/content/packages-and-modules/securing-your-code/trusted-publishers.mdx index ae5b873ebd5..5a30a9ffd1f 100644 --- a/content/packages-and-modules/securing-your-code/trusted-publishers.mdx +++ b/content/packages-and-modules/securing-your-code/trusted-publishers.mdx @@ -118,10 +118,6 @@ stages: variables: NODE_VERSION: '20' -id_tokens: - NPM_ID_TOKEN: - aud: "npm:registry.npmjs.org" - test: stage: test image: node:${NODE_VERSION} @@ -132,6 +128,9 @@ test: publish: stage: publish image: node:${NODE_VERSION} + id_tokens: + NPM_ID_TOKEN: + aud: "npm:registry.npmjs.org" script: # Ensure npm 11.5.1 or later is installed - npm install -g npm@latest