Fast Node Manager dockerised for CI or other edge usages.
Imagine that you simply have a .node-version
file with 14
on its content, so your project will be constrained by this NodeJS version, and therefore this Docker container will automatically use this version (but it's not limited to, as it wraps FNM: read more here).
docker run --rm -v $PWD/myapp:/work d8vjork/fnm fnm --help
build_publish:
image: d8vjork/fnm
script:
- yarn install
- yarn build
- npm version --allow-same-version ${CI_COMMIT_TAG}
- npm publish
# More here... maybe?