docs: update readme #12
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
# https://help.github.com/cn/actions/reference/workflow-syntax-for-github-actions | |
# https://help.github.com/cn/actions/configuring-and-managing-workflows/using-environment-variables | |
# name: Sentry Miniapp Workflow | |
# on: | |
# push: | |
# branches: | |
# - master | |
# - develop | |
# paths-ignore: | |
# - ".vscode/**" | |
# - "docs/**" | |
# - "examples/**" | |
# - "README.md" | |
# env: | |
# ARTIFACT_NAME: ${GITHUB_ACTOR}.${GITHUB_SHA:0:8}.tgz | |
# jobs: | |
# 安装依赖、更新版本号、构建用于直接引用的压缩资源 | |
# install: | |
# name: install-dependencies | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@master | |
# - uses: actions/setup-node@v1 | |
# with: | |
# node-version: "12.x" | |
# - run: npm install | |
# - run: npm run version | |
# - run: npm run build:min | |
# - name: publish new version to GitHub | |
# id: create_release | |
# uses: actions/create-release@latest | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | |
# with: | |
# tag_name: ${{ github.ref }} | |
# release_name: Release ${{ github.ref }} | |
# body: | | |
# Changes in this Release | |
# - First Change | |
# - Second Change | |
# draft: false | |
# prerelease: false | |
# - run: tar -zcf ../sentry-miniapp.tgz * | |
# - uses: actions/upload-artifact@v1 | |
# with: | |
# name: sentry-miniapp.tgz | |
# path: .. | |
# 构建用于直接引用的压缩资源 | |
# build-min: | |
# name: build-min | |
# needs: version | |
# runs-on: ubuntu-latest | |
# steps: | |
# - run: npm run build:min | |
# 构建 commonjs 版本 | |
# build: | |
# name: build commonjs module | |
# needs: version | |
# runs-on: ubuntu-latest | |
# steps: | |
# - run: npm run build:min | |
# 构建 es6 module 版本 | |
# build-esm: | |
# name: build esm module | |
# needs: version | |
# runs-on: ubuntu-latest | |
# steps: | |
# - run: npm run build:esm | |
# 发布到 npm | |
# publish: | |
# name: publish-to-npm | |
# needs: [build, build-esm] | |
# runs-on: ubuntu-latest | |
# steps: | |
# - run: echo 'publish' |