From 210264e474b014187ececa5c88ac693fe81de394 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 3 Dec 2024 18:13:16 -0500 Subject: [PATCH] Fixing woodpecker secrets warning. (#420) --- .woodpecker.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 07258c9..63aeaf5 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -20,12 +20,14 @@ steps: npm_publish: image: node:alpine + environment: + NPM_TOKEN: + from_secret: npm_token commands: - *install_pnpm - pnpm i - echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc - echo "email = tyhou13@gmx.com" >> ~/.npmrc - npm publish - secrets: [npm_token] when: - event: tag