diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml index c2f56d51..1b43530e 100644 --- a/.github/workflows/chromatic.yml +++ b/.github/workflows/chromatic.yml @@ -12,4 +12,4 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} projectToken: ${{ secrets.CHROMATIC_TOKEN }} - buildScriptName: 'build:storybook' + buildScriptName: 'build' diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml deleted file mode 100644 index c589dace..00000000 --- a/.github/workflows/integration.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: E2E Test - -on: - push: - branches-ignore: - - 'master' -jobs: - cypress: - name: Cypress - runs-on: ubuntu-18.04 - steps: - - uses: actions/checkout@v2 - - name: Cypress run - uses: cypress-io/github-action@v2 - with: - start: npm run start:storybook - wait-on: 'http://localhost:6006' - wait-on-timeout: 120 - env: - # pass the Dashboard record key as an environment variable - CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} - # pass GitHub token to allow accurately detecting a build vs a re-run build - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index 74f5518b..00000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Lint -on: [push] -jobs: - lint: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - name: Use Node.js 12.x - uses: actions/setup-node@v1 - with: - version: 12.x - - - name: Install dependencies and build (with cache) - uses: bahmutov/npm-install@v1 - - - name: Lint - run: yarn lint diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 3bc4788d..00000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Unit Test -on: [push] -jobs: - test: - name: Build and test on Node ${{ matrix.node }} and ${{ matrix.os }} - - runs-on: ${{ matrix.os }} - strategy: - matrix: - node: ['12.x', '14.x', '16.x'] - os: [ubuntu-latest] - - steps: - - name: Checkout repo - uses: actions/checkout@v2 - - - name: Use Node ${{ matrix.node }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node }} - - - name: Install dependencies and build (with cache) - uses: bahmutov/npm-install@v1 - - - name: Test - run: yarn test --ci --coverage --maxWorkers=2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 6f5255ea..00000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,52 +0,0 @@ -name: Release -on: - push: - branches: - - master -jobs: - release: - name: ${{ matrix.channel }} - runs-on: ubuntu-latest - environment: production - strategy: - max-parallel: 1 - matrix: - channel: - - latest - - next - - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - name: Setup node - uses: actions/setup-node@v2 - with: - node-version: 12.x - # https://github.com/atlassian/changesets/issues/550#issuecomment-811245508 - registry-url: https://registry.npmjs.org - - - name: Install dependencies and build (with cache) - uses: bahmutov/npm-install@v1 - - - name: Create Release Pull Request or Publish to npm - if: matrix.channel == 'latest' - uses: changesets/action@master - with: - publish: yarn release - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - - # https://github.com/atlassian/changesets/blob/master/docs/snapshot-releases.md - - name: Publish on npm with @next tag - if: matrix.channel == 'next' - run: | - yarn run version:next - yarn run release:next - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }}