Fix carry over logic for fractional formatting #20854
Workflow file for this run
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
| # iTwin.js Extract API Build | |
| name: Extract API | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: | |
| - master | |
| - release/* | |
| paths-ignore: | |
| - "**.md" | |
| - docs/** | |
| - .github/CODEOWNERS | |
| - common/changes/**/*.json | |
| - "**/CHANGELOG.json" | |
| - "**/CHANGELOG.md" | |
| jobs: | |
| extract-api: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout branch | |
| uses: actions/checkout@v4 | |
| - name: Configure git | |
| run: | | |
| git config --local user.email [email protected] | |
| git config --local user.name imodeljs-admin | |
| - name: Setup node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "24" | |
| - name: Rush install | |
| run: node common/scripts/install-run-rush.js install | |
| - name: Rush build | |
| run: | | |
| node common/scripts/install-run-rush.js build -v -p max --to-version-policy prerelease-monorepo-lockStep | |
| node common/scripts/install-run-rush.js build --only cesium-renderer | |
| - name: Rush extract-api | |
| run: node common/scripts/install-run-rush.js extract-api | |
| - name: Assert no uncommitted changes (for extension api) | |
| shell: bash | |
| run: | | |
| if [ $(git status --porcelain | wc -l) -ne "0" ]; then | |
| echo "The following file(s) contain uncommitted changes:" | |
| git status --porcelain -u | |
| echo -e 'Please do the following:\n1. run `rush extract-api` in the monorepo \n2. commit the modified generated extension api files (found in the core/frontend and core/extension dirs) \n3. run rush change and commit the change files for core-frontend and core-extension' | |
| echo -e 'There is a common issue where the generated api files on local machines do not match what the server generates.\nIf `rush extract-api` has already been run locally, and all changes have been pushed,\nhere is the diff:' | |
| git diff | |
| exit 1 | |
| fi | |
| - name: Publish extracted api | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: extracted-api | |
| path: common/api |