chore(deps-dev): bump @swc/core from 1.10.15 to 1.10.16 (#633) #232
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: [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 |