Merge pull request #41 from karolsojko/custom_command #146
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: Build | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 14 | |
- uses: actions/cache@v3 | |
id: yarn-cache | |
with: | |
path: .yarn/cache | |
key: ${{ runner.os }}-node-14-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- run: yarn install --immutable | |
- run: yarn constraints | |
- run: yarn lint | |
- run: yarn workspaces foreach --verbose --topological-dev --parallel --interlaced run build | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: bundles | |
path: packages/*/bundles/**/*.js | |
- run: yarn test | |
- run: yarn semantic-release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |