Skip to content
Snippets Groups Projects
Unverified Commit c260e77e authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire:
Browse files

Add publishing process

parent 6e067ee6
No related branches found
No related tags found
No related merge requests found
Pipeline #24987 passed
...@@ -33,6 +33,19 @@ linting: ...@@ -33,6 +33,19 @@ linting:
- yarn install - yarn install
- yarn run lint - yarn run lint
publish:
stage: deploy
only:
refs:
- master
script:
# https://www.npmjs.com/settings/dbp-deploy/tokens
# NPM_TOKEN needs to be a "Publish" token with 2FA disabled!
- echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > ~/.npmrc
- yarn install
- yarn run build
- yarn run publish
.deploy_defaults: &deploy_defaults .deploy_defaults: &deploy_defaults
except: except:
- schedules - schedules
......
node_modules
.idea
package-lock.json
vendor
rollup.config.js
_cypress_cache
scripts
docker
{ {
"name": "@dbp-apps/signature", "name": "@dbp-topics/signature",
"internalName": "dbp-signature", "internalName": "dbp-signature",
"version": "1.0.0", "version": "1.0.1",
"main": "src/dbp-signature.js", "main": "src/dbp-signature.js",
"license": "LGPL-2.1-or-later", "license": "LGPL-2.1-or-later",
"repository": { "repository": {
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
"@rollup/plugin-url": "^6.0.0", "@rollup/plugin-url": "^6.0.0",
"babel-eslint": "^10.0.3", "babel-eslint": "^10.0.3",
"chai": "^4.2.0", "chai": "^4.2.0",
"can-npm-publish": "^1.3.3",
"eslint": "^7.3.1", "eslint": "^7.3.1",
"eslint-plugin-jsdoc": "^32.0.0", "eslint-plugin-jsdoc": "^32.0.0",
"glob": "^7.1.6", "glob": "^7.1.6",
...@@ -71,6 +72,7 @@ ...@@ -71,6 +72,7 @@
"watch-bs": "rollup -c --watch --environment APP_ENV:bs", "watch-bs": "rollup -c --watch --environment APP_ENV:bs",
"test": "rollup -c --environment APP_ENV:test && karma start --singleRun", "test": "rollup -c --environment APP_ENV:test && karma start --singleRun",
"test-full": "rollup -c --environment FORCE_FULL,APP_ENV:test && karma start --singleRun", "test-full": "rollup -c --environment FORCE_FULL,APP_ENV:test && karma start --singleRun",
"lint": "eslint ." "lint": "eslint .",
"publish": "sed -i 's/\"private\": true/\"private\": false/' package.json && can-npm-publish --verbose 2>&1 && npm publish --access public 2>&1; sed -i 's/\"private\": false/\"private\": true/' package.json"
} }
} }
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment