Skip to content

Workflow file for this run

name: release
on:
release:
types: [created, edited]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18
- run: yarn bootstrap
- run: yarn lint
publish-site:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18
- run: yarn bootstrap
- run: yarn build
- run: yarn build-website
- run: |
cd website/dist
git init
git config --local user.name antv
git config --local user.email [email protected]
git add .
git commit -m "update by release action"
- uses: ad-m/github-push-action@master
with:
github_token: ${{secrets.GITHUB_TOKEN}}
directory: website/dist
branch: gh-pages
force: true
# publish-npm:
# needs: build
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-node@v2
# with:
# node-version: 18
# registry-url: https://registry.npmjs.org/
# - run: yarn bootstrap
# - run: yarn build
# - run: yarn bundle
# - run: |
# cd packages/l7plot
# npm publish
# - run: cd ../../
# - run: |
# cd packages/component
# npm publish
# env:
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}