NPM publish using Node container #4

Merged
Thilawyn merged 19 commits from npm-publish-fix into master 2023-12-29 04:27:34 +01:00
Showing only changes of commit 28ed1b61ac - Show all commits

View File

@@ -25,14 +25,29 @@ local build_step = {
commands: ["bun run build"], commands: ["bun run build"],
}; };
// local publish_step = {
// name: "publish",
// image: "plugins/npm",
// settings: {
// registry: "https://git.jvalver.de/api/packages/jvalverde/npm",
// token: { from_secret: "npm_token" },
// },
// };
local publish_step = { local publish_step = {
name: "publish", name: "publish",
image: "plugins/npm", image: "node:20",
settings: { environment: {
registry: "https://git.jvalver.de/api/packages/jvalverde/npm", NPM_TOKEN: { from_secret: "npm_token" }
token: { from_secret: "npm_token" },
}, },
commands: [
"npm set registry https://git.jvalver.de/api/packages/jvalverde/npm",
"npm config set -- '//git.jvalver.de/api/packages/jvalverde/npm/:_authToken' '$NPM_TOKEN'",
"npm publish",
],
}; };
@@ -75,6 +90,7 @@ local publish_step = {
install_step, install_step,
lint_step, lint_step,
build_step, build_step,
publish_step,
], ],
}, },