Skip to content

chore(deps-dev): bump prettier from 3.4.2 to 3.5.0 (#626) #226

chore(deps-dev): bump prettier from 3.4.2 to 3.5.0 (#626)

chore(deps-dev): bump prettier from 3.4.2 to 3.5.0 (#626) #226

Workflow file for this run

name: Release
on:
push:
branches: [master, next]
jobs:
semantic-release:
name: Bump version and release
if: github.repository_owner == 'ZPTXDev'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.PUSH_TO_PROTECTED_BRANCH }}
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Run tests
run: pnpm test
- name: Build
run: pnpm run build
- name: Release
uses: cycjimmy/semantic-release-action@v4
with:
branches: |
[
'master',
{ name: 'next', prerelease: true }
]
extra_plugins: |
@semantic-release/git
https://github.com/ZPTXDev/semantic-release-github-milestones#master
env:
GITHUB_TOKEN: ${{ secrets.PUSH_TO_PROTECTED_BRANCH }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
update-docs:
name: Update docs
needs: semantic-release
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.PUSH_TO_PROTECTED_BRANCH }}
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm run build
- name: Generate docs
run: npx typedoc src/index.ts --name "${{ github.event.repository.name }} (${{ github.ref_name }})"
- name: Commit updated docs and deploy pages
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.PUSH_TO_PROTECTED_BRANCH }}
folder: docs
repository-name: ZPTXDev/docs
target-folder: ${{ github.event.repository.name }}${{ github.ref_name != 'master' && format('/{0}', github.ref_name) || '' }}
commit-message: 'docs: update docs for ${{ github.event.repository.name }}/${{ github.ref_name }}'
git-config-name: zptx-bot
git-config-email: [email protected]
clean: false