Merge pull request #558 from chakra-ui/develop #67
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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Release | |
on: | |
push: | |
paths: | |
- "packages/**" | |
branches: | |
- master | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@master | |
with: | |
# This makes Actions fetch all Git history | |
# so that Changesets can generate changelogs with the correct commits | |
fetch-depth: 0 | |
- name: Use Node.js 12.x | |
uses: actions/setup-node@master | |
with: | |
node-version: 12.x | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile && yarn bootstrap | |
- name: Linting | |
run: yarn lint | |
- name: Building packages | |
run: yarn build | |
- name: Testing components | |
run: yarn test | |
env: | |
CI: true | |
- name: Setup CI Git User | |
run: | | |
git config --global user.name "codebender828" | |
git config --global user.email "jbakebwa@163.com" | |
- name: Publish packages | |
uses: changesets/action@master | |
with: | |
publish: yarn release | |
title: "chore(release): version packages" | |
commit: "chore(release): version packages" | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |