2024-04-19 08:34:21 +08:00
|
|
|
name: Release Workflow
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'release-*'
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
|
2024-07-19 10:29:20 +08:00
|
|
|
env:
|
|
|
|
npm_config_registry: ${{ vars.REGISTRY_URL }}
|
|
|
|
|
2024-04-19 08:34:21 +08:00
|
|
|
jobs:
|
|
|
|
CI:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v3
|
2024-07-19 10:33:07 +08:00
|
|
|
- name: Setup pnpm
|
|
|
|
uses: pnpm/action-setup@v4
|
|
|
|
- name: Setup node
|
2024-04-19 18:31:26 +08:00
|
|
|
uses: actions/setup-node@v4
|
2024-04-19 08:34:21 +08:00
|
|
|
with:
|
2024-08-09 02:43:27 +08:00
|
|
|
node-version: 20.16.0
|
2024-04-19 18:31:26 +08:00
|
|
|
registry-url: ${{ vars.REGISTRY_URL }}
|
|
|
|
cache: 'pnpm'
|
|
|
|
- name: Install deps
|
2024-04-19 08:34:21 +08:00
|
|
|
run: pnpm install
|
|
|
|
- name: Build
|
|
|
|
run: pnpm build:p
|
2024-04-19 18:31:26 +08:00
|
|
|
- name: Publish
|
2024-04-19 08:34:21 +08:00
|
|
|
env:
|
2024-04-19 18:31:26 +08:00
|
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPMTOKEN }}
|
2024-08-14 14:32:14 +08:00
|
|
|
SENTRY_DSN: ${{ vars.SENTRY_DSN }}
|
|
|
|
SENTRY_TRACE_ENABLE: ${{ vars.SENTRY_TRACE_ENABLE }}
|
|
|
|
SENTRY_TRACE_SAMPLE_RATE: ${{ vars.SENTRY_TRACE_SAMPLE_RATE }}
|
|
|
|
SENTRY_TRACE_PROPAGATION_TARGETS: ${{ vars.SENTRY_TRACE_PROPAGATION_TARGETS }}
|
|
|
|
SENTRY_SESSION_REPLAY_ENABLE: ${{ vars.SENTRY_SESSION_REPLAY_ENABLE }}
|
|
|
|
SENTRY_SESSION_REPLAY_SAMPLE_RATE: ${{ vars.SENTRY_SESSION_REPLAY_SAMPLE_RATE }}
|
|
|
|
SENTRY_SESSION_REPLAY_ONERROR_SAMPLE_RATE: ${{ vars.SENTRY_SESSION_REPLAY_ONERROR_SAMPLE_RATE }}
|
2024-04-19 18:31:26 +08:00
|
|
|
run: pnpm -r publish --access=public --no-git-checks --publish-branch ${{ gitea.ref }}
|