Skip to content

Commit

Permalink
feat(ci): add sync-pkg.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
eiinu committed Dec 7, 2023
1 parent aaffbdb commit 2a7dce3
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/sync-pkg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: sync to pkg branch

permissions:
contents: write

on:
push:
branches:
- v4 # default branch

jobs:
copy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install pnpm
run: corepack enable

- uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Build @nutui/nutui
run: pnpm build

- name: Build @nutui/nutui-taro
run: pnpm build:taro

- name: Sync
uses: JamesIves/[email protected]
with:
branch: pkg # action 应该部署到的分支 。
folder: publish #操作应该部署的文件夹 。
clean: false
target-folder: publish
git-config-name: github-actions
git-config-email: [email protected]

0 comments on commit 2a7dce3

Please sign in to comment.