Skip to content

Commit

Permalink
[ci] lerna for publish
Browse files Browse the repository at this point in the history
  • Loading branch information
sim51 committed Apr 9, 2024
1 parent 7be19ae commit bee7fc1
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 11 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/osrd-ui-publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Publish @osrd-project on Release

on:
workflow_dispatch:
release:
types: [created]

jobs:
publish:
Expand All @@ -23,8 +24,8 @@ jobs:
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: 'Build & deploy'
- name: Publish
run: |
VERSION=${GITHUB_REF/refs\/tags\//}
npm ci
npm run build
lerna publish from-package --no-private --yes
npm run lerna -- publish ${VERSION} --force-publish --yes --no-push --no-git-tag-version
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"storybook": "npm start --workspace='@osrd-project/storybook'",
"lerna:changed": "lerna changed",
"lerna:diff": "lerna diff",
"lerna:ls": "lerna ls",
"lerna": "lerna",
"lerna:publish": "lerna publish from-package --no-private --yes"
},
"devDependencies": {
Expand Down
7 changes: 5 additions & 2 deletions ui-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@osrd-project/ui-core",
"version": "0.0.18",
"license": "LGPL-3.0-or-later",
"bugs": "https://github.com/osrd-project/osrd-ui/issues",
"repository": {
"type": "git",
Expand All @@ -26,7 +27,8 @@
"rollup": "rollup -c",
"clean": "rimraf dist",
"build": "npm run rollup",
"watch": "NODE_ENV=development rollup -c -w"
"watch": "NODE_ENV=development rollup -c -w",
"prepublishOnly": "npm run clean && npm run build"
},
"peerDependencies": {
"react": ">=18.0"
Expand All @@ -44,5 +46,6 @@
"rollup-plugin-livereload": "^2.0.5",
"rollup-plugin-postcss": "^4.0.2",
"rollup-plugin-serve": "^1.1.1"
}
},
"gitHead": "973ad1478be4544e1c97303b844903247d9a9cd7"
}
7 changes: 5 additions & 2 deletions ui-icons/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@osrd-project/ui-icons",
"version": "0.0.18",
"license": "LGPL-3.0-or-later",
"bugs": "https://github.com/osrd-project/osrd-ui/issues",
"repository": {
"type": "git",
Expand All @@ -22,13 +23,15 @@
"build-components": "node ./scripts/build.js",
"rollup": "rollup -c",
"clean": "rimraf dist",
"build": "npm run build-components && npm run rollup"
"build": "npm run build-components && npm run rollup",
"prepublishOnly": "npm run clean && npm run build"
},
"peerDependencies": {
"react": ">=18.0"
},
"devDependencies": {
"cheerio": "^1.0.0-rc.12",
"svgo": "3.2.0"
}
},
"gitHead": "973ad1478be4544e1c97303b844903247d9a9cd7"
}
4 changes: 3 additions & 1 deletion ui-speedspacechart/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@osrd-project/ui-speedspacechart",
"version": "0.0.18",
"license": "LGPL-3.0-or-later",
"private": true,
"bugs": "https://github.com/osrd-project/osrd-ui/issues",
"repository": {
Expand All @@ -21,7 +22,8 @@
"scripts": {
"rollup": "rollup -c",
"clean": "rimraf dist",
"build": "npm run rollup"
"build": "npm run rollup",
"prepublishOnly": "npm run clean && npm run build"
},
"peerDependencies": {
"react": ">=18.0",
Expand Down
4 changes: 3 additions & 1 deletion ui-warped-map/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@osrd-project/ui-warped-map",
"description": "A React component to display MapLibre maps warped along a given path.",
"version": "0.0.18",
"license": "LGPL-3.0-or-later",
"private": true,
"homepage": "https://github.com/osrd-project/osrd-ui#readme",
"repository": {
Expand All @@ -25,7 +26,8 @@
"scripts": {
"rollup": "rollup -c",
"clean": "rimraf dist",
"build": "npm run rollup"
"build": "npm run rollup",
"prepublishOnly": "npm run clean && npm run build"
},
"dependencies": {
"@turf/along": "^6.5.0",
Expand Down

0 comments on commit bee7fc1

Please sign in to comment.