@northscaler/better-enum
Version:
Better enumeration support for TypeScript than its `enum` keyword. This class is modeled after [Java's enumeration pattern](https://docs.oracle.com/javase/tutorial/java/javaOO/enum.html), where enums are instances of classes. This library provides a base
48 lines (40 loc) • 877 B
YAML
.authenticate-to-npmjs:
- &authenticate-to-npmjs |
echo "$NPM_SCOPE:registry=https://$NPM_REGISTRY_HOST/" >> ~/.npmrc
echo "//$NPM_REGISTRY_HOST/:_authToken=$NPM_TOKEN" >> ~/.npmrc
cache:
paths:
- node_modules/
before_script:
- node --version
- npm --version
stages:
- build
- publish
build-12:
stage: build
image: node:12.0.0-alpine
script:
- npm run build-ci
build-14:
stage: build
image: node:14.0.0-alpine
script:
- npm run build-ci
build-16:
stage: build
image: node:16.0.0-alpine
script:
- npm run build-ci
publish:
stage: publish
image: node:16.0.0-alpine
script:
- *authenticate-to-npmjs
- npm install
- npm run make-distribution
- export RM_TMP_TAG=cicd-$(date +%s)
- npm publish --access public --tag $RM_TMP_TAG
- ./tag-nodejs
only:
- /^\d+\.\d+\.\d+(\-[^\.]+\.\d+)?$/