tachybase_todo/.gitea/workflows/release.yaml

30 lines
674 B
YAML
Raw Normal View History

2024-04-19 08:34:21 +08:00
name: Release Workflow
on:
push:
branches:
- 'release-*'
permissions:
contents: write
jobs:
CI:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
2024-04-19 18:31:26 +08:00
- name: Install Node.js
uses: actions/setup-node@v4
2024-04-19 08:34:21 +08:00
with:
2024-04-19 18:31:26 +08:00
node-version: 20
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 }}
run: pnpm -r publish --access=public --no-git-checks --publish-branch ${{ gitea.ref }}