chore: delete figma plugin (#4316) #1088
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: Release | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| snapshot: | |
| description: 'Create snapshot release' | |
| type: boolean | |
| default: false | |
| tag: | |
| description: 'npm tag (for snapshot releases)' | |
| type: choice | |
| default: 'test' | |
| options: | |
| - next | |
| - test | |
| push: | |
| branches: | |
| - main | |
| concurrency: ${{ github.workflow }}-${{ github.ref }} | |
| jobs: | |
| snapshot: | |
| name: Snapshot Release | |
| runs-on: ubuntu-latest | |
| if: ${{ github.event.inputs.snapshot == 'true' }} | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| id-token: write | |
| packages: write | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| - uses: ./.github/actions/gh-setup | |
| - name: Build | |
| run: pnpm build | |
| - id: snapshot | |
| name: Set Snapshot Name | |
| run: | | |
| NAME="${{ github.ref_name }}" | |
| NAME="${NAME//\//-}" | |
| echo "name=${NAME}" >> $GITHUB_OUTPUT | |
| - name: Create Snapshot Release | |
| run: | | |
| pnpm run version-packages --snapshot "${{ steps.snapshot.outputs.name }}" | |
| echo '---' | |
| echo 'Detected Changes:' | |
| git diff | |
| echo '---' | |
| pnpm run publish-packages --tag "${{ github.event.inputs.tag }}" --no-git-tag | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_TOKEN: '' | |
| release: | |
| name: Release | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| if: ${{ github.event.inputs.snapshot != 'true' }} | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| id-token: write | |
| packages: write | |
| outputs: | |
| published: ${{ steps.changesets.outputs.published }} | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| - uses: ./.github/actions/gh-setup | |
| - name: Store release version for changeset | |
| id: release_version | |
| run: echo "VALUE=$(bash ./scripts/print_release_version.sh)" >> $GITHUB_OUTPUT | |
| shell: bash | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Create Release Pull Request or Publish to npm | |
| id: changesets | |
| # Forked version of the changesets action that supports aggregated releases | |
| uses: dotansimha/changesets-action@069996e9be15531bd598272996fa23853d61590e # v1.5.2 | |
| with: | |
| publish: pnpm publish-packages | |
| version: pnpm version-packages | |
| commit: 'chore: new release' | |
| title: 'chore: new release' | |
| createGithubReleases: aggregate | |
| githubReleaseName: v${{ steps.release_version.outputs.value }} | |
| githubTagName: v${{ steps.release_version.outputs.value }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_TOKEN: '' # https://github.com/changesets/changesets/issues/1152#issuecomment-3190884868 | |
| deploy-www: | |
| permissions: | |
| id-token: write | |
| contents: read | |
| pull-requests: write | |
| needs: release | |
| if: ${{ needs.release.outputs.published == 'true' }} | |
| uses: ./.github/workflows/azure-deploy-www.yml | |
| with: | |
| environment: 'production' | |
| secrets: | |
| AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }} | |
| AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }} | |
| AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | |
| SLACK_INVITE_URL: ${{ secrets.SLACK_INVITE_URL }} | |
| deploy-theme: | |
| permissions: | |
| id-token: write | |
| contents: read | |
| pull-requests: write | |
| needs: release | |
| if: ${{ needs.release.outputs.published == 'true' }} | |
| uses: ./.github/workflows/azure-deploy-themebuilder.yml | |
| with: | |
| environment: 'production' | |
| secrets: | |
| AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }} | |
| AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }} | |
| AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | |
| deploy-storybook: | |
| permissions: | |
| id-token: write | |
| contents: read | |
| pull-requests: write | |
| needs: release | |
| if: ${{ needs.release.outputs.published == 'true' }} | |
| uses: ./.github/workflows/azure-deploy-storybook.yml | |
| with: | |
| environment: 'production' | |
| secrets: | |
| AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }} | |
| AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }} | |
| AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }} |