Skip to content

Commit

Permalink
WEBUI-1647: fix link element repo (#2469)
Browse files Browse the repository at this point in the history
* WEBUI-1647: fix link element repo

* WEBUI-1647: fix link element repo

* WEBUI-1647: fix link element repo

* WEBUI-1647: fix link element repo

* WEBUI-1647: fix link element repo

* WEBUI-1647: fix link element repo

* WEBUI-1647: test ally rc

* WEBUI-1647: revert code test ally rc
  • Loading branch information
rakeshkumar1019 authored Feb 10, 2025
1 parent d85b24e commit dabf6b4
Showing 1 changed file with 17 additions and 1 deletion.
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

0 comments on commit dabf6b4

Please sign in to comment.