Merge pull request #236 from liam-hq/enable_figma_like_view #117
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: | |
push: | |
branches: | |
- main | |
env: | |
working-directory: frontend | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
permissions: | |
id-token: write | |
contents: write | |
packages: write | |
pull-requests: write | |
issues: read | |
jobs: | |
create_release_pull_request_or_publish: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- name: Create GitHub App Token | |
uses: actions/create-github-app-token@v1 | |
id: app-token | |
with: | |
app-id: ${{ vars.CHANGESET_CI_TRIGGER_APP_ID }} | |
private-key: ${{ secrets.CHANGESET_CI_TRIGGER_APP_PRIVATE_KEY }} | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ steps.app-token.outputs.token }} | |
sparse-checkout: | | |
.github | |
${{ env.working-directory }} | |
- uses: ./.github/actions/pnpm-setup | |
with: | |
working-directory: ${{ env.working-directory }} | |
- name: Create Release Pull Request or Publish to npm | |
uses: changesets/[email protected] | |
with: | |
cwd: ${{ env.working-directory }} | |
publish: pnpm run release | |
env: | |
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |