From 8746bdc818dcfe52aff9691429c9d4e42f2010b3 Mon Sep 17 00:00:00 2001 From: Justin Wernick Date: Tue, 13 Jun 2023 15:03:21 +0200 Subject: Add an NPM publish step to the CI pipeline The docs for the authentication on the publish step weren't super clear, so this might not work right initially. --- .woodpecker.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.woodpecker.yml b/.woodpecker.yml index 4142b42..4bfa3f0 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -18,6 +18,17 @@ pipeline: commands: - npm run docs + publish-npm: + image: node:lts + secrets: [ npmtoken ] + commands: + - npm config set -- '//registry.npmjs.org/:_authToken' "${NPMTOKEN}" + - npm publish + when: + # Push new version when version tag is created + event: tag + tag: v* + publish-pages: image: rust:latest secrets: [ cbtoken ] -- cgit v1.2.3