tachybase_todo/.gitea/workflows/release.yaml
sealday e311e617e6 ci: release (#1353)
Co-authored-by: sealday <sealday@gmail.com>
Reviewed-on: daoyoucloud/tachybase#1353
2024-07-19 10:33:07 +08:00

37 lines
828 B
YAML

name: Release Workflow
on:
push:
branches:
- 'release-*'
permissions:
contents: write
env:
npm_config_registry: ${{ vars.REGISTRY_URL }}
jobs:
CI:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 8.15.5
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20.12.0
registry-url: ${{ vars.REGISTRY_URL }}
cache: 'pnpm'
- name: Install deps
run: pnpm install
- name: Build
run: pnpm build:p
- name: Publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMTOKEN }}
run: pnpm -r publish --access=public --no-git-checks --publish-branch ${{ gitea.ref }}