crishellco/vue-beam

View on GitHub
.github/workflows/build.yml

Summary

Maintainability
Test Coverage
name: Build
"on":
  push:
    branches:
      - master
      - alpha
      - beta
  pull_request:
    types:
      - opened
      - synchronize

env:
  FORCE_COLOR: 1
  NPM_CONFIG_COLOR: always
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
  verify:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Read .nvmrc
        run: "echo ::set-output name=NVMRC::$(cat .nvmrc)"
        id: nvm
      - name: Setup node
        uses: actions/setup-node@v3
        with:
          node-version: "${{ steps.nvm.outputs.NVMRC }}"
      - run: yarn install
      - run: yarn test
        env:
          CI: true
      - uses: codecov/codecov-action@v3
      - run: yarn build
      - run: yarn release
        env:
          NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}