diff options
author | Justin Wernick <justin@worthe-it.co.za> | 2023-06-13 15:03:21 +0200 |
---|---|---|
committer | Justin Wernick <justin@worthe-it.co.za> | 2023-06-13 15:14:11 +0200 |
commit | 8746bdc818dcfe52aff9691429c9d4e42f2010b3 (patch) | |
tree | 8609a06b27a2e5bb4b915d46bdc2c3c3e562280a | |
parent | 3caeb30fa21f94f5fbc5bea144d4c9e6908c3443 (diff) |
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.
-rw-r--r-- | .woodpecker.yml | 11 |
1 files changed, 11 insertions, 0 deletions
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 ] |