useOverflow
argument change: items
→ itemsCount
(#2150)
#1071
This file contains 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: CD | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
env: | |
NPM_CONFIG_PROVENANCE: true | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
release: | |
name: Release | |
if: github.repository == 'iTwin/iTwinUI' | |
permissions: | |
id-token: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.IMJS_ADMIN_GH_TOKEN }} | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 9 | |
- name: Use Node 20.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
registry-url: 'https://registry.npmjs.org' | |
- run: pnpm install | |
- name: Check for existing changesets | |
id: changesets_files | |
run: | | |
changesets=$(pnpm changeset status) | |
# only true if changesets contains @itwin/itwinui-react or @itwin/itwinui-variables | |
if [[ $changesets == *"@itwin/itwinui-react"* || $changesets == *"@itwin/itwinui-variables"* ]]; then | |
echo "exists=true" >> "$GITHUB_OUTPUT" | |
fi | |
- name: Check if release PR already exists | |
id: changesets_branch | |
run: | | |
if [[ $(git ls-remote --heads origin refs/heads/changeset-release/main) ]]; then | |
echo "exists=true" >> "$GITHUB_OUTPUT" | |
fi | |
- name: Create or update release PR | |
if: steps.changesets_branch.outputs.exists == 'true' || steps.changesets_files.outputs.exists == 'true' | |
uses: changesets/action@v1 | |
with: | |
version: pnpm changeset version --ignore @itwin/itwinui-css | |
publish: pnpm release | |
title: Release packages | |
commit: Release packages | |
env: | |
GITHUB_TOKEN: ${{ secrets.IMJS_ADMIN_GH_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPMJS_PUBLISH_ITWIN }} | |
GIT_AUTHOR_NAME: github-actions[bot] | |
GIT_AUTHOR_EMAIL: github-actions[bot]@users.noreply.github.com | |
GIT_COMMITTER_NAME: github-actions[bot] | |
GIT_COMMITTER_EMAIL: github-actions[bot]@users.noreply.github.com | |
- name: Publish to npm & GitHub (if not already published) | |
if: steps.changesets_files.outputs.exists != 'true' | |
run: | | |
pnpm release | |
env: | |
GITHUB_TOKEN: ${{ secrets.IMJS_ADMIN_GH_TOKEN }} | |
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_PUBLISH_ITWIN }} |