diff --git a/.github/workflows/merge-queue.yml b/.github/workflows/merge-queue.yml new file mode 100644 index 0000000000..505e32b358 --- /dev/null +++ b/.github/workflows/merge-queue.yml @@ -0,0 +1,17 @@ +name: Merge Queue Checks + +on: + merge_group: + types: + - checks_requested + +jobs: + commitlint: + name: Commit Lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ github.sha }} + + - uses: YossiSaadi/commitlint-github-action@vibe-fork/support-merge_group-event diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index c319969be4..0cccad06d1 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -18,3 +18,13 @@ jobs: uses: ./.github/workflows/test.yml secrets: npm_token: ${{ secrets.npm_token }} + + commitlint: + name: Commit Lint + needs: build + if: false + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ github.sha }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b5cf66b40a..bf38032576 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,6 +27,7 @@ jobs: steps: - uses: actions/checkout@v4 with: + token: ${{ secrets.VIBE_GITHUB_TOKEN }} fetch-depth: 0 - name: Run Setup uses: ./.github/actions/setup @@ -35,7 +36,9 @@ jobs: - uses: ./.github/actions/git-creds - uses: ./.github/actions/download-builds - name: Generate new versions - run: yarn lerna version --exact --conventional-commits --conventional-graduate -y + run: yarn lerna version --exact --conventional-commits --conventional-graduate --message "Publish [skip ci]" -y + env: + GH_TOKEN: ${{ secrets.VIBE_GITHUB_TOKEN }} - run: yarn config set registry https://registry.npmjs.org/ - name: Setup .npmrc for publish id: setup-npmrc diff --git a/package.json b/package.json index 588ae2fcd5..7fc742c9c1 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "lint": "lerna run lint", "test": "lerna run test", "storybook": "lerna run storybook --parallel --stream", - "postinstall": "lerna run build --scope=vibe-storybook-components" + "postinstall": "lerna run build --scope={vibe-storybook-components,@vibe/icons}" }, "devDependencies": { "lerna": "^8.1.2", diff --git a/packages/core/.eslintrc.cjs b/packages/core/.eslintrc.cjs index 91e951502f..7fa4453b0f 100644 --- a/packages/core/.eslintrc.cjs +++ b/packages/core/.eslintrc.cjs @@ -97,16 +97,21 @@ module.exports = { } }, { - files: [ - "*.stories.@(js|jsx|ts|tsx)", - "*.stories.helpers.@(js|jsx|ts|tsx)", - "src/storybook/decorators/**/with*.{js,jsx,ts,tsx}" - ], + files: ["*.stories.@(js|jsx)", "*.stories.helpers.@(js|jsx)", "src/storybook/decorators/**/with*.{js,jsx}"], rules: { ...commonRules, "react-hooks/rules-of-hooks": "off", "react/jsx-key": "off" } + }, + { + files: ["*.stories.@(ts|tsx)", "*.stories.helpers.@(ts|tsx)", "src/storybook/decorators/**/with*.{ts,tsx}"], + rules: { + ...commonRules, + "react-hooks/rules-of-hooks": "off", + "react/jsx-key": "off", + "react/require-default-props": "off" + } } ], env: { diff --git a/packages/core/.storybook/manager-head.html b/packages/core/.storybook/manager-head.html index 28de9e7e0a..80d7dd4962 100644 --- a/packages/core/.storybook/manager-head.html +++ b/packages/core/.storybook/manager-head.html @@ -3,8 +3,13 @@