chore(deps): update dependency highlight.js to v11.11.0 (#455) #580
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 | |
- next | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.BELLA_ACTION_TOKEN }} | |
- name: Configure Git | |
run: | | |
git config --global user.email '${{ secrets.BELLA_EMAIL_ADDRESS }}' | |
git config --global user.name 'MagicBella' | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- uses: bahmutov/npm-install@v1 | |
- name: Create Release Pull Request or Publish to npm | |
uses: changesets/action@v1 | |
id: changesets | |
with: | |
publish: yarn changeset:release | |
commit: 'chore: version packages' | |
title: 'next release' | |
env: | |
GITHUB_TOKEN: ${{ secrets.BELLA_ACTION_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Publish to brew tap | |
if: steps.changesets.outputs.published == 'true' | |
shell: bash | |
run: "npx -y brew-formula github @magicbell/cli magicbell/homebrew-tap --test-command 'magicbell logout' --test-output '/you are not logged in/i'" | |
env: | |
GITHUB_TOKEN: ${{ secrets.BELLA_ACTION_TOKEN }} | |
- name: Build docs | |
if: steps.changesets.outputs.published == 'true' | |
run: | | |
yarn --cwd ./packages/codegen build # needed by scripts below | |
yarn --cwd ./packages/project-client build:docs | |
yarn --cwd ./packages/user-client build:docs | |
- name: Push docs to remote repo | |
uses: BetaHuhn/repo-file-sync-action@v1 | |
if: steps.changesets.outputs.published == 'true' | |
with: | |
GH_PAT: ${{ secrets.BELLA_ACTION_TOKEN }} | |
COMMIT_PREFIX: 'docs: ' | |
GIT_USERNAME: 'MagicBella' | |
GIT_EMAIL: '${{ secrets.BELLA_EMAIL_ADDRESS }}' |