fix(ui5-multi-input): show suggestions instead of tokens on desktop #519
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
| name: Deploy Preview | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| branches: | |
| - main | |
| paths: | |
| - 'packages/website/**' | |
| - 'docs/**' | |
| - '*.md' | |
| - 'README.md' | |
| - 'packages/base/src/**/*.css' | |
| - 'packages/base/src/**/*.ts' | |
| - 'packages/ai/src/**/*.css' | |
| - 'packages/ai/src/**/*.ts' | |
| - 'packages/ai/src/**/*.tsx' | |
| - 'packages/compat/src/**/*.css' | |
| - 'packages/compat/src/**/*.ts' | |
| - 'packages/compat/src/**/*.tsx' | |
| - 'packages/fiori/src/**/*.css' | |
| - 'packages/fiori/src/**/*.ts' | |
| - 'packages/fiori/src/**/*.tsx' | |
| - 'packages/main/src/**/*.css' | |
| - 'packages/main/src/**/*.ts' | |
| - 'packages/main/src/**/*.tsx' | |
| - '!**/*.spec.ts' | |
| - '!**/*.test.ts' | |
| - '!**/test/**' | |
| jobs: | |
| deploy-preview: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| - name: Setup Node.js | |
| uses: actions/[email protected] | |
| with: | |
| node-version: 22 | |
| cache: 'yarn' | |
| - name: Install | |
| run: | | |
| export NODE_OPTIONS="--max_old_space_size=4096" | |
| yarn install | |
| - name: Update version.md for PR | |
| run: | | |
| mkdir -p packages/website/static | |
| touch packages/website/static/version.md | |
| echo "PR #${{ github.event.number }} - $(git log -1 --format='%h %s')" > packages/website/static/version.md | |
| echo "Branch: ${{ github.head_ref }}" >> packages/website/static/version.md | |
| echo "Commit: $(git rev-parse HEAD)" >> packages/website/static/version.md | |
| - name: Build | |
| env: | |
| DEPLOYMENT_TYPE: "netlify_preview" | |
| DEPLOYMENT_NETLIFY_PREVIEW_BASE_URL: "https://pr-${{ github.event.number }}--ui5-webcomponents-preview.netlify.app" | |
| PR_NUMBER: "${{ github.event.number }}" | |
| run: | | |
| yarn ci:deploy:preview | |
| - name: Check PR status | |
| id: final-pr-check | |
| if: always() | |
| uses: actions/github-script@v7 | |
| with: | |
| github-token: ${{ secrets.UI5_WEBCOMP_BOT_GH_TOKEN }} | |
| script: | | |
| const { data: pr } = await github.rest.pulls.get({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| pull_number: context.payload.pull_request.number | |
| }); | |
| if (pr.state !== 'open') { | |
| console.log(`PR #${pr.number} was closed during build, skipping deployment`); | |
| const fs = require('fs'); | |
| fs.appendFileSync(process.env.GITHUB_OUTPUT, `should_deploy=false\n`); | |
| return; | |
| } | |
| console.log(`PR #${pr.number} is still open, proceeding with deployment`); | |
| const fs = require('fs'); | |
| fs.appendFileSync(process.env.GITHUB_OUTPUT, `should_deploy=true\n`); | |
| - name: Config Netlify CORS | |
| if: steps.final-pr-check.outputs.should_deploy == 'true' | |
| run: | | |
| cat > packages/website/build/netlify.toml << 'EOF' | |
| [build] | |
| publish = "." | |
| # CORS headers for local-cdn resources | |
| [[headers]] | |
| for = "/local-cdn/*" | |
| [headers.values] | |
| Access-Control-Allow-Origin = "*" | |
| Access-Control-Allow-Methods = "GET, HEAD, OPTIONS" | |
| Access-Control-Allow-Headers = "Content-Type, Accept" | |
| Access-Control-Max-Age = "86400" | |
| Cache-Control = "public, max-age=31536000, immutable" | |
| EOF | |
| - name: Deploy | |
| if: steps.final-pr-check.outputs.should_deploy == 'true' | |
| uses: nwtgck/[email protected] | |
| with: | |
| publish-dir: './packages/website/build' | |
| production-deploy: false | |
| github-token: ${{ secrets.UI5_WEBCOMP_BOT_GH_TOKEN }} | |
| deploy-message: "Deploy preview for PR #${{ github.event.number }}" | |
| alias: pr-${{ github.event.number }} | |
| enable-pull-request-comment: true | |
| enable-commit-comment: false | |
| overwrites-pull-request-comment: true | |
| github-deployment-environment: preview | |
| env: | |
| NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
| NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} |