Skip to content

Commit

Permalink
ci: fix node release
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
  • Loading branch information
sagikazarmark committed May 7, 2024
1 parent 0c3ec51 commit f4d5d1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ci/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit f4d5d1c

Please sign in to comment.