Now featuring a release pipeline 🚀
This commit is contained in:
parent
82a41356c8
commit
7d78b2d668
23
.gitlab-ci.yml
Normal file
23
.gitlab-ci.yml
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
image: node:14
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- publish
|
||||||
|
|
||||||
|
# Install the dependencies
|
||||||
|
before_script:
|
||||||
|
- npm install
|
||||||
|
|
||||||
|
cache:
|
||||||
|
paths:
|
||||||
|
- node_modules/
|
||||||
|
|
||||||
|
# Build the image and publish it to the npmjs registry.
|
||||||
|
publish:
|
||||||
|
stage: publish
|
||||||
|
only:
|
||||||
|
- tags
|
||||||
|
- triggers
|
||||||
|
script:
|
||||||
|
- npm run build
|
||||||
|
- echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}'>.npmrc
|
||||||
|
- npm publish
|
Loading…
x
Reference in New Issue
Block a user