From 301a89c13ad8893bedf9164e18af88f399f2230d Mon Sep 17 00:00:00 2001 From: janrywang Date: Sat, 24 Jul 2021 16:11:42 +0800 Subject: [PATCH] chore(flow): add release.yml --- .github/workflows/release.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000000..721569e0f9c --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,32 @@ +name: Node CI + +on: + push: + branches: + - formily_next + +jobs: + release: + if: !startsWith(github.event.head_commit.message, 'chore(versions): ') + runs-on: ${{ matrix.os }} + strategy: + matrix: + node_version: [11.x] + os: [ubuntu-latest] + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node_version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node_version }} + - run: yarn -v + - run: yarn --ignore-engines + - run: yarn build + - run: yarn run release:force + env: + HEADLESS: false + PROGRESS: none + NODE_ENV: test + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} + NODE_OPTIONS: --max_old_space_size=4096