fix: 支持 onClose 返回 false 拦截关闭 (#30) #36
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: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
if: contains(github.event.head_commit.message, 'chore(release)') | |
steps: | |
- uses: actions/checkout@v1 | |
with: | |
fetch-depth: 0 | |
ref: main | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 18 | |
registry-url: https://registry.npmjs.org/ | |
- run: | | |
yarn -v | |
yarn --ignore-engines | |
yarn build | |
env: | |
NODE_OPTIONS: --max_old_space_size=4096 | |
REGISTRY: https://registry.npmjs.org | |
- uses: janrywang/github-tag-release@main | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- run: yarn run release | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
ACCESS_KEY_ID: ${{ secrets.ACCESS_KEY_ID }} | |
ACCESS_KEY_SECRET: ${{ secrets.ACCESS_KEY_SECRET }} | |
# - name: Upload coverage to Codecov | |
# uses: codecov/codecov-action@v1 | |
# with: | |
# token: ${{ secrets.CODECOV_TOKEN }} | |
# fail_ci_if_error: true | |
# verbose: true |