chore(ag-person-cell): ag grid 33 major update (#2433) #449
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: Release | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- 'packages/**' | |
- '.changeset/*.md' | |
jobs: | |
release-pkg: | |
name: Create release | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/main' | |
outputs: | |
published: ${{ steps.changesets.outputs.published }} | |
hasChangesets: ${{ steps.changesets.outputs.hasChangesets }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup node and install deps | |
uses: ./.github/workflows/actions/node-setup | |
- name: Config git user | |
run: | | |
git config --global user.name "${{ github.actor }}" | |
git config --global user.email "${{ github.actor }}@users.noreply.github.com" | |
pnpm config set '//registry.npmjs.org/:_authToken' "${NPM_AUTH_TOKEN}" | |
env: | |
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | |
- name: Create Release Pull Request or Publish to npm | |
id: changesets | |
uses: changesets/action@v1 | |
with: | |
title: '🤖 Bip Bop - Fusion React Components Release' | |
commit: 'chore: version packages' | |
createGithubReleases: true | |
setupGitUser: false | |
version: pnpm changeset:version | |
publish: pnpm changeset:publish | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | |
- name: convert Changeset PR to draf | |
if: steps.changesets.outputs.published == 'false' && steps.changesets.outputs.pullRequestNumber | |
run: gh pr ready ${{ steps.changesets.outputs.pullRequestNumber }} --undo | |
env: | |
GH_TOKEN: ${{ github.token }} | |
documentation: | |
name: Update documentation | |
needs: release-pkg | |
if: needs.release-pkg.outputs.published == 'true' | |
uses: ./.github/workflows/generate-docs.yml | |
secrets: inherit |