ci: get CI ready for publishing the npm package

This commit is contained in:
Rainer Killinger
2023-01-13 18:53:52 +01:00
parent c36c47267b
commit 3d53615447
5 changed files with 53 additions and 66 deletions

20
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,20 @@
image: registry.gitlab.com/openstapps/projectmanagement/node
stages:
- test
- publish
prettier config file:
stage: test
script:
- npm test
package:
tags:
- secrecy
stage: publish
script:
- echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc
- npm publish --access=public
only:
- /^v[0-9]+\.[0-9]+\.[0-9]+$/