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

Add publishing jobs and CI configuration (#36)

parent 28c4101a
No related branches found
No related tags found
No related merge requests found
Pipeline #14289 failed
......@@ -7,6 +7,7 @@ cache:
stages:
- test
- publish
test:
stage: test
......@@ -14,3 +15,12 @@ test:
- yarn config set cache-folder "$CI_PROJECT_DIR/_yarn_cache"
- yarn install
- yarn run test
publish:
stage: publish
only:
refs:
- publish
script:
- sudo npm install --global can-npm-publish
- yarn run publish
......@@ -8,7 +8,8 @@
"packages/*"
],
"scripts": {
"test": "lerna run test"
"test": "lerna run test",
"publish": "lerna run publish"
},
"author": "",
"license": "LGPL-2.1-or-later",
......
......@@ -45,6 +45,7 @@
"watch": "npm run watch-local",
"watch-local": "rollup -c --watch",
"test": "npm run build-test && karma start --singleRun",
"publish": "can-npm-publish --verbose && npm run build && echo 'Todo: Publish'",
"lint": "eslint ."
}
}
......@@ -44,6 +44,7 @@
"watch": "npm run watch-local",
"watch-local": "rollup -c --watch",
"watch-dev": "rollup -c --watch --environment BUILD:development",
"test": "npm run build-test && karma start --singleRun"
"test": "npm run build-test && karma start --singleRun",
"publish": "can-npm-publish --verbose && npm run build && echo 'Todo: Publish'"
}
}
......@@ -28,7 +28,8 @@
"build-test": "rollup -c --environment BUILD:test",
"test": "npm run build-test && karma start --singleRun",
"watch": "rollup -c --watch",
"lint": "eslint ."
"lint": "eslint .",
"publish": "can-npm-publish --verbose && npm run build && echo 'Todo: Publish'"
},
"dependencies": {
"@open-wc/scoped-elements": "^1.3.2",
......
......@@ -50,6 +50,7 @@
"watch": "npm run watch-local",
"watch-local": "rollup -c --watch",
"watch-dev": "rollup -c --watch --environment BUILD:development",
"test": "npm run build-test && karma start --singleRun"
"test": "npm run build-test && karma start --singleRun",
"publish": "can-npm-publish --verbose && npm run build && echo 'Todo: Publish'"
}
}
{
"name": "@dbp-toolkit/file-handling",
"version": "0.1.5",
"version": "0.1.6",
"main": "src/index.js",
"license": "LGPL-2.1-or-later",
"devDependencies": {
......@@ -45,6 +45,7 @@
"watch": "npm run watch-local",
"watch-local": "rollup -c --watch",
"watch-dev": "rollup -c --watch --environment BUILD:development",
"test": "npm run build-test && karma start --singleRun"
"test": "npm run build-test && karma start --singleRun",
"publish": "can-npm-publish --verbose && npm run build && echo 'Todo: Publish'"
}
}
......@@ -43,6 +43,7 @@
"watch": "npm run watch-local",
"watch-local": "rollup -c --watch",
"watch-dev": "rollup -c --watch --environment BUILD:development",
"test": "npm run build-test && karma start --singleRun"
"test": "npm run build-test && karma start --singleRun",
"publish": "can-npm-publish --verbose && npm run build && echo 'Todo: Publish'"
}
}
......@@ -39,6 +39,7 @@
"watch": "npm run watch-local",
"watch-local": "rollup -c --watch",
"watch-dev": "rollup -c --watch --environment BUILD:development",
"test": "npm run build-test && karma start --singleRun"
"test": "npm run build-test && karma start --singleRun",
"publish": "can-npm-publish --verbose && npm run build && echo 'Todo: Publish'"
}
}
......@@ -40,6 +40,7 @@
"watch": "npm run watch-local",
"watch-local": "rollup -c --watch",
"watch-dev": "rollup -c --watch --environment BUILD:development",
"test": "npm run build-test && karma start --singleRun"
"test": "npm run build-test && karma start --singleRun",
"publish": "can-npm-publish --verbose && npm run build && echo 'Todo: Publish'"
}
}
......@@ -43,6 +43,7 @@
"watch": "npm run watch-local",
"watch-local": "rollup -c --watch",
"watch-dev": "rollup -c --watch --environment BUILD:development",
"test": "npm run build-test && karma start --singleRun"
"test": "npm run build-test && karma start --singleRun",
"publish": "can-npm-publish --verbose && npm run build && echo 'Todo: Publish'"
}
}
......@@ -44,6 +44,7 @@
"watch": "npm run watch-local",
"watch-local": "rollup -c --watch",
"watch-dev": "rollup -c --watch --environment BUILD:development",
"test": "npm run build-test && karma start --singleRun"
"test": "npm run build-test && karma start --singleRun",
"publish": "can-npm-publish --verbose && npm run build && echo 'Todo: Publish'"
}
}
......@@ -46,6 +46,7 @@
"watch-local": "rollup -c --watch",
"watch-dev": "rollup -c --watch --environment BUILD:development",
"test": "npm run build-test && karma start --singleRun",
"lint": "eslint ."
"lint": "eslint .",
"publish": "can-npm-publish --verbose && npm run build && echo 'Todo: Publish'"
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment