Skip to content
Snippets Groups Projects

feat(gitlab-ci): add what is needed to publish on npm

Merged Nicola Spanti requested to merge topic/default/npm-publish into branch/default
Files
2
+ 15
0
default:
tags:
- dedibox
js-build:
script:
- npm run prepublishOnly
npm-publish:
script:
- 'export PACKAGE=`echo $CI_COMMIT_TAG | cut -d "@" -f 1`'
- 'export VERSION=`echo $CI_COMMIT_TAG | cut -d "@" -f 2`'
- 'npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}'
- 'echo "publishing version $VERSION for package @logilab/$PACKAGE (tag: $CI_COMMIT_TAG)"'
- 'npm publish --access public'
Loading