Skip to content

refactor(TimeLine): 重构时间轴 & 新增自定义渲染 (#629) #651

refactor(TimeLine): 重构时间轴 & 新增自定义渲染 (#629)

refactor(TimeLine): 重构时间轴 & 新增自定义渲染 (#629) #651

Workflow file for this run

name: Build & Deploy
on:
push:
branches:
- master
env:
SKIP_PREFLIGHT_CHECK: true
NODE_OPTIONS: --max_old_space_size=8192
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
- run: yarn install
- run: npm run build
- run: npm run test
working-directory: test-ci
- run: npm run doc
- run: rm -rf packages/docs/doc
- run: mkdir -p packages/docs/doc
- run: cp -r website/build/ packages/docs/doc
- name: Is a tag created auto?
id: create_tag
uses: jaywcjlove/create-tag-action@main
with:
package-path: ./packages/core/package.json
- name: Generate Changelog
id: changelog
uses: jaywcjlove/changelog-generator@main
if: steps.create_tag.outputs.successful
with:
head-ref: ${{ steps.create_tag.outputs.version }}
filter-author: (renovate-bot|Renovate Bot)
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
- name: Create Release
uses: jaywcjlove/create-tag-action@main
with:
package-path: ./packages/core/package.json
release: true
body: |
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-native@${{steps.changelog.outputs.version}}/file/README.md) [![npm version](https://img.shields.io/npm/v/@uiw/react-native.svg)](https://www.npmjs.com/package/@uiw/react-native) [![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-native)](https://bundlephobia.com/result?p=@uiw/react-native@${{steps.changelog.outputs.version}})
${{ steps.changelog.outputs.compareurl }}
${{ steps.changelog.outputs.changelog }}
- run: git status
- name: 📦 publish to NPM
uses: kktjs/npm-publish@main
with:
token: ${{ secrets.NPM_TOKEN }}
workspaces: packages/*
# - name: 📦 @uiw/react-native publish to NPM
# run: npm publish
# working-directory: packages/core
# continue-on-error: true
# env:
# NODE_AUTH_TOKEN: '${{ secrets.NPM_TOKEN }}'
# - name: 📦 @uiw/react-native-doc publish to NPM
# run: npm publish
# working-directory: packages/docs
# continue-on-error: true
# env:
# NODE_AUTH_TOKEN: '${{ secrets.NPM_TOKEN }}'
# - name: 📦 @uiw/react-native-image-picker publish to NPM
# run: npm publish
# working-directory: packages/react-native-image-picker
# continue-on-error: true
# env:
# NODE_AUTH_TOKEN: '${{ secrets.NPM_TOKEN }}'
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./website/build
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
- name: Deploy to uimjs.github.io
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.PERSONAL_TOKEN_UIM }}
publish_dir: ./website/build
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
publish_branch: master
external_repository: uimjs/uimjs.github.io