Skip to content

chore: update lerna.json #355

chore: update lerna.json

chore: update lerna.json #355

Workflow file for this run

name: CI
on:
push:
branches:
- master
env:
SKIP_PREFLIGHT_CHECK: true
jobs:
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
- run: npm -v
- run: npm install -g npm@8
- run: npm -v
- run: npm install
- run: npm install --workspaces
- run: npm run build
- run: npm run doc
- run: npm run coverage
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
- run: npm -v
- run: npm install -g npm@8
- run: npm -v
- run: npm install
- run: npm install --workspaces
- run: npm run build
- run: npm run doc
- run: npm run coverage
- run: npm run bundle
- run: npm run bundle:min
- run: cp -rp packages/baidu-map/dist/* website/build
- run: cp -rp coverage website/build
- name: Create Coverage Badges
uses: jaywcjlove/coverage-badges-cli@main
with:
output: website/build/badges.svg
- name: Generate Contributors Images
uses: jaywcjlove/github-action-contributors@main
with:
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\])
output: website/build/CONTRIBUTORS.svg
avatarSize: 42
- run: npm publish --access public
continue-on-error: true
working-directory: packages/baidu-map/
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish --access public
continue-on-error: true
working-directory: packages/api-loader/
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# - uses: JS-DevTools/npm-publish@v1
# with:
# token: ${{ secrets.NPM_TOKEN }}
# package: packages/canvas-layer/package.json
- run: npm publish --access public
continue-on-error: true
working-directory: packages/circle/
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish --access public
continue-on-error: true
working-directory: packages/control/
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish --access public
continue-on-error: true
working-directory: packages/copyright-control/
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish --access public
continue-on-error: true
working-directory: packages/curve-line/
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish --access public
continue-on-error: true
working-directory: packages/custom-overlay/
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish --access public
continue-on-error: true
working-directory: packages/drawing-manager/
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish --access public
continue-on-error: true
working-directory: packages/geolocation-control/
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish --access public
continue-on-error: true
working-directory: packages/ground-overlay/
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish --access public
continue-on-error: true
working-directory: packages/info-window/
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish --access public
continue-on-error: true
working-directory: packages/label/
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish --access public
continue-on-error: true
working-directory: packages/map/
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish --access public
continue-on-error: true
working-directory: packages/marker/
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish --access public
continue-on-error: true
working-directory: packages/navigation-control/
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish --access public
continue-on-error: true
working-directory: packages/overview-map-control/
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish --access public
continue-on-error: true
working-directory: packages/panorama-control/
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish --access public
continue-on-error: true
working-directory: packages/point-collection/
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish --access public
continue-on-error: true
working-directory: packages/polygon/
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish --access public
continue-on-error: true
working-directory: packages/polyline/
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish --access public
continue-on-error: true
working-directory: packages/require-script/
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish --access public
continue-on-error: true
working-directory: packages/scale-control/
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish --access public
continue-on-error: true
working-directory: packages/tile-layer/
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish --access public
continue-on-error: true
working-directory: packages/type-control/
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish --access public
continue-on-error: true
working-directory: packages/types/
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish --access public
continue-on-error: true
working-directory: packages/utils/
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish --access public
continue-on-error: true
working-directory: packages/with-map/
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create Tag
id: create_tag
uses: jaywcjlove/create-tag-action@main
with:
package-path: ./packages/baidu-map/package.json
- name: get tag version
id: tag_version
uses: jaywcjlove/changelog-generator@main
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./website/build
commit_message: ${{steps.tag_version.outputs.tag}} ${{ github.event.head_commit.message }}
- name: Generate Changelog
id: changelog
uses: jaywcjlove/changelog-generator@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
filter-author: (renovate-bot|Renovate Bot)
head-ref: ${{steps.create_tag.outputs.version}}
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
- name: Create Release
uses: ncipollo/release-action@v1
if: steps.create_tag.outputs.successful
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ steps.create_tag.outputs.version }}
tag: ${{ steps.create_tag.outputs.version }}
body: |
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-baidu-map@${{steps.create_tag.outputs.versionNumber}}/file/README.md) [![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-baidu-map)](https://bundlephobia.com/result?p=@uiw/react-baidu-map@${{steps.create_tag.outputs.versionNumber}})
Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/jaywcjlove/idoc/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
```bash
npm i @uiw/react-baidu-map@${{steps.create_tag.outputs.versionNumber}}
```
${{ steps.changelog.outputs.changelog }}
Document react-baidu-map@${{ steps.create_tag.outputs.version }}:
https://raw.githack.com/uiwjs/react-baidu-map/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html