Skip to content
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

WEBUI-1647: fix link element repo #2469

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
needs: [lint, test, a11y, ftest]
runs-on: [self-hosted, master]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4.2.2

- run: git config user.name "nuxeo-webui-jx-bot" && git config user.email "[email protected]"

Expand All @@ -70,6 +70,8 @@ jobs:
echo "VERSION=$(npx semver -i prerelease --preid rc ${RC_VERSION:-$PACKAGE_VERSION} | tr -d '\n')" >> $GITHUB_ENV
- name: Update versions
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
find . -type f -not -path "./node_modules/*" -regex ".*\.\(yaml\|sample\|xml\)" -exec sed -i 's/'"$PACKAGE_VERSION"'/'"$VERSION"'/g' {} \;
Expand All @@ -80,6 +82,20 @@ jobs:
sed -i -e 's/\${project.version}/'"$PADDED_VERSION"'/g' plugin/web-ui/marketplace/pom.xml
npm version ${VERSION} --no-git-tag-version
# Get latest UI Elements version
ELEMENTS_VERSION=$(npm view @nuxeo/nuxeo-ui-elements versions --json | jq -r '.[]' | grep -E "3\.1\.[0-9]+-rc\.[0-9]+$" | sort -V | tail -n1)
echo "Latest nuxeo-elements version: $ELEMENTS_VERSION"
# Update package.json dependencies and devDependencies
jq --arg ver "~$ELEMENTS_VERSION" '
.dependencies."@nuxeo/nuxeo-dataviz-elements" = $ver |
.dependencies."@nuxeo/nuxeo-elements" = $ver |
.dependencies."@nuxeo/nuxeo-ui-elements" = $ver |
.devDependencies."@nuxeo/testing-helpers" = $ver
' package.json > tmp.json && mv tmp.json package.json
echo "Updated all Nuxeo dependencies to version $ELEMENTS_VERSION"
pushd packages/nuxeo-web-ui-ftest
npm version ${VERSION} --no-git-tag-version
popd
Expand Down
Loading