@antv/l7plot@0.5.8 #57
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: 16 | |
- 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: 16 | |
- 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 antv@antfin.com | |
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: 16 | |
# 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}} |