-
-
Notifications
You must be signed in to change notification settings - Fork 605
XWIKI-23610: Allow xwiki build to publish npm artifacts #4812
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
manuelleduc
wants to merge
3
commits into
xwiki:master
Choose a base branch
from
manuelleduc:XWIKI-23610
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+257
−22
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| #!/usr/bin/env bash | ||
| function set_packages_version() { | ||
| if [ -z "$1" ]; then | ||
| echo "Missing version parameter" >&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| version="$1" | ||
| current_directory="$(dirname "$(readlink -f "$0")")/.." | ||
|
|
||
|
|
||
| find "$current_directory" -type d -name "node_modules" -prune -o -name "package.json" -print | \ | ||
| grep -v "^$current_directory/package.json$" | \ | ||
| while IFS= read -r pkg_path; do | ||
|
|
||
| ## private or unnamed packages are skipped | ||
| is_skipped=$(jq -r '.private' "$pkg_path") | ||
|
|
||
| if [ "$is_skipped" = "true" ]; then | ||
| continue | ||
| fi | ||
|
|
||
| # Create a temporary file in case of issue during the version patch | ||
| temp_file=$(mktemp) | ||
|
|
||
| # Update the version with jq on the temp file, and replace the original file with the patch version if no | ||
| # problem was encountered. | ||
| if ! jq ".version = \"$version\"" "$pkg_path" > "$temp_file"; then | ||
| relative_pkg_path=$(realpath --relative-to="$current_directory" "$pkg_path") | ||
| echo "Failed to update $relative_pkg_path: jq error" >&2 | ||
| rm -f "$temp_file" | ||
| continue | ||
| fi | ||
|
|
||
| mv "$temp_file" "$pkg_path" | ||
| done | ||
| } | ||
|
|
||
| set_packages_version 18.0.0-SNAPSHOT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
xwiki-platform-core/xwiki-platform-node/src/main/node/api/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "name": "@xwiki/platform-api", | ||
| "version": "17.10.0", | ||
| "version": "18.0.0-SNAPSHOT", | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Later, the versions will change with xwiki/xwiki-dev-tools#16 |
||
| "license": "LGPL 2.1", | ||
| "author": "XWiki Org Community <[email protected]>", | ||
| "homepage": "https://xwiki.org/", | ||
|
|
||
2 changes: 1 addition & 1 deletion
2
...form-core/xwiki-platform-node/src/main/node/core/attachments/attachments-api/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "name": "@xwiki/platform-attachments-api", | ||
| "version": "17.10.0", | ||
| "version": "18.0.0-SNAPSHOT", | ||
| "license": "LGPL 2.1", | ||
| "author": "XWiki Org Community <[email protected]>", | ||
| "homepage": "https://xwiki.org/", | ||
|
|
||
2 changes: 1 addition & 1 deletion
2
...-core/xwiki-platform-node/src/main/node/core/attachments/attachments-default/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "name": "@xwiki/platform-attachments-default", | ||
| "version": "17.10.0", | ||
| "version": "18.0.0-SNAPSHOT", | ||
| "license": "LGPL 2.1", | ||
| "author": "XWiki Org Community <[email protected]>", | ||
| "homepage": "https://xwiki.org/", | ||
|
|
||
2 changes: 1 addition & 1 deletion
2
...ore/xwiki-platform-node/src/main/node/core/authentication/authentication-api/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "name": "@xwiki/platform-authentication-api", | ||
| "version": "17.10.0", | ||
| "version": "18.0.0-SNAPSHOT", | ||
| "license": "LGPL 2.1", | ||
| "author": "XWiki Org Community <[email protected]>", | ||
| "homepage": "https://xwiki.org/", | ||
|
|
||
2 changes: 1 addition & 1 deletion
2
xwiki-platform-core/xwiki-platform-node/src/main/node/core/backends/backend-api/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "name": "@xwiki/platform-backend-api", | ||
| "version": "17.10.0", | ||
| "version": "18.0.0-SNAPSHOT", | ||
| "license": "LGPL 2.1", | ||
| "author": "XWiki Org Community <[email protected]>", | ||
| "homepage": "https://xwiki.org/", | ||
|
|
||
2 changes: 1 addition & 1 deletion
2
...-core/xwiki-platform-node/src/main/node/core/collaboration/collaboration-api/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "name": "@xwiki/platform-collaboration-api", | ||
| "version": "17.10.0", | ||
| "version": "18.0.0-SNAPSHOT", | ||
| "license": "LGPL 2.1", | ||
| "author": "XWiki Org Community <[email protected]>", | ||
| "homepage": "https://xwiki.org/", | ||
|
|
||
2 changes: 1 addition & 1 deletion
2
...-core/xwiki-platform-node/src/main/node/core/configuration/configuration-api/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "name": "@xwiki/platform-configuration-api", | ||
| "version": "17.10.0", | ||
| "version": "18.0.0-SNAPSHOT", | ||
| "license": "LGPL 2.1", | ||
| "author": "XWiki Org Community <[email protected]>", | ||
| "homepage": "https://xwiki.org/", | ||
|
|
||
2 changes: 1 addition & 1 deletion
2
...i-platform-core/xwiki-platform-node/src/main/node/core/document/document-api/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "name": "@xwiki/platform-document-api", | ||
| "version": "17.10.0", | ||
| "version": "18.0.0-SNAPSHOT", | ||
| "license": "LGPL 2.1", | ||
| "author": "XWiki Org Community <[email protected]>", | ||
| "homepage": "https://xwiki.org/", | ||
|
|
||
2 changes: 1 addition & 1 deletion
2
xwiki-platform-core/xwiki-platform-node/src/main/node/core/fn-utils/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "name": "@xwiki/platform-fn-utils", | ||
| "version": "17.10.0", | ||
| "version": "18.0.0-SNAPSHOT", | ||
| "license": "LGPL 2.1", | ||
| "author": "XWiki Org Community <[email protected]>", | ||
| "homepage": "https://xwiki.org/", | ||
|
|
||
2 changes: 1 addition & 1 deletion
2
xwiki-platform-core/xwiki-platform-node/src/main/node/core/icons/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "name": "@xwiki/platform-icons", | ||
| "version": "17.10.0", | ||
| "version": "18.0.0-SNAPSHOT", | ||
| "description": "Provide UI components to display icons.", | ||
| "license": "LGPL 2.1", | ||
| "author": "XWiki Org Community <[email protected]>", | ||
|
|
||
2 changes: 1 addition & 1 deletion
2
...rm-core/xwiki-platform-node/src/main/node/core/link-suggest/link-suggest-api/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "name": "@xwiki/platform-link-suggest-api", | ||
| "version": "17.10.0", | ||
| "version": "18.0.0-SNAPSHOT", | ||
| "license": "LGPL 2.1", | ||
| "author": "XWiki Org Community <[email protected]>", | ||
| "homepage": "https://xwiki.org/", | ||
|
|
||
2 changes: 1 addition & 1 deletion
2
xwiki-platform-core/xwiki-platform-node/src/main/node/core/macros/macros-api/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "name": "@xwiki/platform-macros-api", | ||
| "version": "17.10.0", | ||
| "version": "18.0.0-SNAPSHOT", | ||
| "license": "LGPL 2.1", | ||
| "author": "XWiki Org Community <[email protected]>", | ||
| "homepage": "https://xwiki.org/", | ||
|
|
||
2 changes: 1 addition & 1 deletion
2
...form-core/xwiki-platform-node/src/main/node/core/macros/macros-ast-react-jsx/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "name": "@xwiki/platform-macros-ast-react-jsx", | ||
| "version": "17.10.0", | ||
| "version": "18.0.0-SNAPSHOT", | ||
| "license": "LGPL 2.1", | ||
| "author": "XWiki Org Community <[email protected]>", | ||
| "homepage": "https://xwiki.org/", | ||
|
|
||
2 changes: 1 addition & 1 deletion
2
xwiki-platform-core/xwiki-platform-node/src/main/node/core/model/model-api/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "name": "@xwiki/platform-model-api", | ||
| "version": "17.10.0", | ||
| "version": "18.0.0-SNAPSHOT", | ||
| "license": "LGPL 2.1", | ||
| "author": "XWiki Org Community <[email protected]>", | ||
| "homepage": "https://xwiki.org/", | ||
|
|
||
2 changes: 1 addition & 1 deletion
2
...i-platform-node/src/main/node/core/model/model-reference/model-reference-api/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "name": "@xwiki/platform-model-reference-api", | ||
| "version": "17.10.0", | ||
| "version": "18.0.0-SNAPSHOT", | ||
| "license": "LGPL 2.1", | ||
| "author": "XWiki Org Community <[email protected]>", | ||
| "homepage": "https://xwiki.org/", | ||
|
|
||
2 changes: 1 addition & 1 deletion
2
...platform-node/src/main/node/core/model/model-remote-url/model-remote-url-api/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "name": "@xwiki/platform-model-remote-url-api", | ||
| "version": "17.10.0", | ||
| "version": "18.0.0-SNAPSHOT", | ||
| "license": "LGPL 2.1", | ||
| "author": "XWiki Org Community <[email protected]>", | ||
| "homepage": "https://xwiki.org/", | ||
|
|
||
2 changes: 1 addition & 1 deletion
2
...e/xwiki-platform-node/src/main/node/core/navigation-tree/navigation-tree-api/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "name": "@xwiki/platform-navigation-tree-api", | ||
| "version": "17.10.0", | ||
| "version": "18.0.0-SNAPSHOT", | ||
| "license": "LGPL 2.1", | ||
| "author": "XWiki Org Community <[email protected]>", | ||
| "homepage": "https://xwiki.org/", | ||
|
|
||
2 changes: 1 addition & 1 deletion
2
xwiki-platform-core/xwiki-platform-node/src/main/node/core/uniast/uniast-api/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "name": "@xwiki/platform-uniast-api", | ||
| "version": "17.10.0", | ||
| "version": "18.0.0-SNAPSHOT", | ||
| "license": "LGPL 2.1", | ||
| "author": "XWiki Org Community <[email protected]>", | ||
| "homepage": "https://xwiki.org/", | ||
|
|
||
2 changes: 1 addition & 1 deletion
2
...-platform-core/xwiki-platform-node/src/main/node/core/uniast/uniast-markdown/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "name": "@xwiki/platform-uniast-markdown", | ||
| "version": "17.10.0", | ||
| "version": "18.0.0-SNAPSHOT", | ||
| "license": "LGPL 2.1", | ||
| "author": "XWiki Org Community <[email protected]>", | ||
| "homepage": "https://xwiki.org/", | ||
|
|
||
2 changes: 1 addition & 1 deletion
2
xwiki-platform-core/xwiki-platform-node/src/main/node/ds/api/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "name": "@xwiki/platform-dsapi", | ||
| "version": "17.10.0", | ||
| "version": "18.0.0-SNAPSHOT", | ||
| "license": "LGPL 2.1", | ||
| "author": "XWiki Org Community <[email protected]>", | ||
| "homepage": "https://xwiki.org/", | ||
|
|
||
2 changes: 1 addition & 1 deletion
2
...i-platform-core/xwiki-platform-node/src/main/node/editors/blocknote-headless/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "name": "@xwiki/platform-editors-blocknote-headless", | ||
| "version": "17.10.0", | ||
| "version": "18.0.0-SNAPSHOT", | ||
| "license": "LGPL 2.1", | ||
| "author": "XWiki Org Community <[email protected]>", | ||
| "homepage": "https://xwiki.org/", | ||
|
|
||
2 changes: 1 addition & 1 deletion
2
xwiki-platform-core/xwiki-platform-node/src/main/node/editors/blocknote-react/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "name": "@xwiki/platform-editors-blocknote-react", | ||
| "version": "17.10.0", | ||
| "version": "18.0.0-SNAPSHOT", | ||
| "license": "LGPL 2.1", | ||
| "author": "XWiki Org Community <[email protected]>", | ||
| "homepage": "https://xwiki.org/", | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just an utility script to help me test version changes. I'm going to remove it from the PR.