diff --git a/.github/workflows/publish-ui-components.yml b/.github/workflows/publish-ui-components.yml deleted file mode 100644 index fa70bdbd6..000000000 --- a/.github/workflows/publish-ui-components.yml +++ /dev/null @@ -1,49 +0,0 @@ -name: Publish ui-components to NPM Registry - -on: - push: - branches: - - master - paths: - - "packages/ui-components/**" -jobs: - publish: - if: ${{ github.repository_owner == 'cockroachdb'}} - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [16.x] - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 - with: - node-version: "16.x" - registry-url: "https://registry.npmjs.org" - - - name: Lerna bootstrap - run: npx lerna bootstrap - - - name: Build packages - run: npx lerna run build - - - name: Continuous Integration for all packages - run: npx lerna run ci --stream - env: - CI: true - - - name: Configure Git User - run: | - git config user.name "Github Actions" - git config user.email "" - - - name: Bump version (prerelease) - run: | - yarn version --prerelease --preid="alpha" - git push --all - working-directory: ./packages/ui-components - - - name: Publish ui-components - run: yarn publish --access public --tag next - working-directory: ./packages/ui-components - env: - NODE_AUTH_TOKEN: ${{ secrets.YARN_TOKEN }} diff --git a/.github/workflows/pull-request-ci.yml b/.github/workflows/pull-request-ci.yml index 5c8a16140..9e7fbccaa 100644 --- a/.github/workflows/pull-request-ci.yml +++ b/.github/workflows/pull-request-ci.yml @@ -18,13 +18,13 @@ jobs: node-version: 16 cache: 'yarn' - - name: Lerna bootstrap - run: lerna bootstrap + - name: Monorepo init + run: yarn - name: Build packages - run: lerna run build + run: yarn run lerna run build - name: Continuous Integration for all packages - run: lerna run ci --stream + run: yarn run lerna run ci --stream env: CI: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 17e029b84..222304f54 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,7 +10,7 @@ on: jobs: release: runs-on: ubuntu-latest - if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci') && !github.event.pull_request.head.repo.fork" + if: ${{ !contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci') && !github.event.pull_request.head.repo.fork }} steps: - uses: actions/checkout@v3 with: @@ -29,5 +29,5 @@ jobs: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} run: | yarn install --frozen-lockfile - lerna run build + yarn run lerna run build yarn run release