From f4d5d1c099b9c1159dcaa7326f70dc805144184f Mon Sep 17 00:00:00 2001 From: Mark Sagi-Kazar Date: Tue, 7 May 2024 23:03:22 +0200 Subject: [PATCH] ci: fix node release Signed-off-by: Mark Sagi-Kazar --- ci/release.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/release.go b/ci/release.go index 0e4b0da42..945bd3672 100644 --- a/ci/release.go +++ b/ci/release.go @@ -142,11 +142,12 @@ func (m *Ci) publishToNpm(ctx context.Context, pkg *Directory, version string, n From("node:20-alpine"). WithExec([]string{"npm", "install", "-g", "pnpm"}). WithExec([]string{"sh", "-c", "echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > /root/.npmrc"}). + WithSecretVariable("NPM_TOKEN", npmToken). WithDirectory("/work", pkg). + WithWorkdir("/work"). WithExec([]string{"pnpm", "install", "--frozen-lockfile"}). WithExec([]string{"pnpm", "version", version, "--no-git-tag-version"}). WithEnvVariable("CACHE_BUSTER", time.Now().Format(time.RFC3339Nano)). - WithSecretVariable("NPM_TOKEN", npmToken). WithExec([]string{"pnpm", "--access=public", "--no-git-checks"}). Sync(ctx)