fix: skip captureException:
part when logging the error
#348
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: ci | |
on: [push, workflow_dispatch] | |
env: | |
NODE_OPTIONS: --max-old-space-size=5000 | |
CC_TEST_REPORTER_ID: 7997607c5b558cb4d41dc064f3df1a81c07f2de9861ed73c738c23ed8dbab69e | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message , 'skip ci')" | |
steps: | |
- { uses: actions/checkout@v4, with: { persist-credentials: false } } | |
- uses: pnpm/action-setup@v4 | |
- { uses: actions/setup-node@v4, with: { node-version: 'lts/*', cache: 'pnpm' } } | |
- run: pnpm install | |
- run: pnpm check | |
release: | |
runs-on: ubuntu-latest | |
if: github.ref_name == 'main' | |
permissions: | |
contents: write | |
id-token: write | |
pull-requests: write | |
steps: | |
- { uses: actions/checkout@v4, with: { persist-credentials: false } } | |
- uses: pnpm/action-setup@v4 | |
- { uses: actions/setup-node@v4, with: { node-version: 'lts/*', cache: 'pnpm' } } | |
- run: pnpm install | |
- run: pnpm build | |
- run: pnpm release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
docs: | |
runs-on: ubuntu-latest | |
if: github.ref_name == 'main' | |
steps: | |
- { uses: actions/checkout@v4, with: { persist-credentials: false } } | |
- uses: pnpm/action-setup@v4 | |
- { uses: actions/setup-node@v4, with: { node-version: 'lts/*', cache: 'pnpm' } } | |
- run: pnpm install | |
- run: pnpm build | |
- run: pnpm docs:build | |
- name: publish docs to github pages | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs/.vitepress/dist | |
force_orphan: true | |
commit_message: 'deploy docs [skip ci]' | |
# publish_branch: gh-pages | |
# build-job: | |
# runs-on: ubuntu-latest | |
# if: "!contains(github.event.head_commit.message , 'skip ci')" | |
# steps: | |
# - { uses: actions/checkout@v4, with: { persist-credentials: false } } | |
# - { uses: actions/setup-node@v4, with: { node-version: 'lts/*', cache: 'yarn' } } | |
# - run: yarn --frozen-lockfile | |
# - run: yarn dev-lib tsc | |
# - name: test | |
# run: | | |
# curl -s -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter && chmod +x ./cc-test-reporter | |
# ./cc-test-reporter before-build | |
# yarn test | |
# ./cc-test-reporter after-build -t lcov | |
# |