-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 15fd7c1
Showing
1,581 changed files
with
165,319 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Changesets | ||
|
||
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works | ||
with multi-package repos, or single-package repos to help you version and publish your code. You can | ||
find the full documentation for it [in our repository](https://github.com/changesets/changesets) | ||
|
||
We have a quick list of common questions to get you started engaging with this project in | ||
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | ||
"changelog": "@changesets/cli/changelog", | ||
"commit": ["@changesets/cli/commit", { "skipCI": false }], | ||
"fixed": [["@monite/sdk-react", "@monite/sdk-api"]], | ||
"linked": [], | ||
"access": "public", | ||
"baseBranch": "origin/master", | ||
"updateInternalDependencies": "patch", | ||
"ignore": [] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@monite/sdk-react': patch | ||
--- | ||
|
||
refactor(DEV-9443): Improved user permission support for UI |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@team-monite/sdk-demo': minor | ||
--- | ||
|
||
add Roles menu item to demo |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@monite/sdk-react': patch | ||
--- | ||
|
||
fix(DEV-9443): Do not display output `null` in `<ApprovalPoliciesUser/>`if user name is not specified |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'@monite/sdk-react': minor | ||
'@team-monite/sdk-demo': minor | ||
'@monite/sdk-api': minor | ||
--- | ||
|
||
feature(DEV-9854): add table for user roles |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/usr/bin/env sh | ||
set -o errexit | ||
|
||
confirm() { | ||
# Check if any of the common CI environment variables are set | ||
# 'CI' is used by many CI services like Travis CI, CircleCI, etc. | ||
# 'GITHUB_ACTIONS' is specific to GitHub Actions | ||
# 'GITLAB_CI' is specific to GitLab CI | ||
if [ -z "$CI" ] && [ -z "$GITHUB_ACTIONS" ] && [ -z "$GITLAB_CI" ]; then | ||
echo "You are about to publish workspaces." | ||
echo "This will make the current versions of the packages publicly available. Do you want to continue? (y/n)" | ||
read ans | ||
case $ans in | ||
[Yy]* ) ;; | ||
* ) echo "Operation cancelled"; exit 1 ;; | ||
esac | ||
fi | ||
} | ||
|
||
confirm | ||
|
||
# Check if the .changeset/pre.json file exists for alpha/beta releases | ||
if [ -f ".changeset/pre.json" ]; then | ||
TAG=$(node -p "require('./.changeset/pre.json').tag") | ||
|
||
if [ -n "$TAG" ]; then | ||
echo "Publishing under the tag: $TAG" | ||
yarn workspaces foreach --verbose --recursive --no-private --from '@team-monite/*' --from '@monite/*' npm publish --tolerate-republish --tag "$TAG" | ||
else | ||
echo "Error: 'tag' value is empty in .changeset/pre.json"; exit 1 | ||
fi | ||
else | ||
yarn workspaces foreach --verbose --recursive --no-private --from '@team-monite/*' --from '@monite/*' npm publish --tolerate-republish | ||
fi | ||
|
||
for arg in "$@"; do | ||
if [ "$arg" = "--create-git-tags" ]; then | ||
yarn changeset tag | ||
fi | ||
done |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env sh | ||
set -o errexit | ||
|
||
yarn changeset version | ||
|
||
# Check if the .changeset/pre.json file exists, then add it to the staged files | ||
if [ -f ".changeset/pre.json" ]; then | ||
echo "Found '.changeset/pre.json' file..." | ||
git add ".changeset/pre.json" >> /dev/null | ||
# Check if the .changeset/pre.json file has been deleted but not staged | ||
elif git ls-files --deleted | grep -q ".changeset/pre.json"; then | ||
echo "Found deletion of '.changeset/pre.json' file..." | ||
git add ".changeset/pre.json" >> /dev/null | ||
else | ||
echo "No '.changeset/pre.json' file found." | ||
fi | ||
|
||
# Check if the .changeset/pre.json is present in the staged files (it could be also deleted) | ||
if git diff --staged --name-only | grep -q ".changeset/pre.json"; then | ||
git commit --amend --no-edit --no-verify >> /dev/null | ||
echo "Changes to '.changeset/pre.json' amended to the previous commit!" | ||
fi |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 2 | ||
charset = utf-8 | ||
trim_trailing_whitespace = true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: "Setup Monorepo" | ||
description: "Setup Node and Install dependencies." | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Setup Node.js 18.x | ||
uses: actions/setup-node@v4 | ||
with: | ||
cache: 'yarn' | ||
node-version: 18.x | ||
|
||
- name: Restore node_modules | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
.yarn/install-state.gz | ||
**/node_modules | ||
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-1 | ||
|
||
- name: Install Dependencies | ||
shell: bash | ||
run: yarn install --immutable | ||
|
||
- name: Run Turborepo Remote Cache | ||
uses: dtinth/[email protected] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# This is a GitHub Action that ensures that your pull request titles match the Conventional Commits spec. | ||
# Refer to the `amannn/action-semantic-pull-request` documentation for more information: https://github.com/amannn/action-semantic-pull-request | ||
|
||
name: Contribution Guidelines Check | ||
|
||
on: | ||
pull_request_target: | ||
branches: | ||
- "**" | ||
- "!changeset-release/**" | ||
types: | ||
- opened | ||
- reopened | ||
- edited | ||
- synchronize | ||
- labeled | ||
- unlabeled | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | ||
# Cancel in-progress runs when a new workflow with the same group name is triggered | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
validate-pr-title: | ||
name: Validate PR Title | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: amannn/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
# These are regex patterns auto-wrapped in `^ $`. | ||
scopes: | | ||
devops | ||
proposal | ||
DEV-\d+ | ||
requireScope: true | ||
subjectPattern: ^([A-Z]).+$ | ||
subjectPatternError: | | ||
The subject "{subject}" found in the pull request title | ||
✖︎ `{title}` | ||
does not start with an uppercase ⇧ character. | ||
✔️ Valid examples are: | ||
• `feat(DEV-123): Add user profile page` | ||
• `fix(DEV-321): Authenticated user can't access the Dashboard` | ||
• `docs(proposal): Add contribution guidelines` | ||
Please ensure that the subject doesn't start with an uppercase ⇧ character. | ||
ignoreLabels: | | ||
bot |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,146 @@ | ||
name: Main Suite | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- "**" | ||
- "!changeset-release/**" | ||
push: | ||
branches: | ||
- main | ||
- master | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
# Cancel in-progress runs when a new workflow with the same group name is triggered | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Monorepo | ||
uses: ./.github/actions/setup-monorepo | ||
|
||
- name: Build | ||
run: yarn build | ||
lint: | ||
needs: build | ||
name: Linting | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Monorepo | ||
uses: ./.github/actions/setup-monorepo | ||
|
||
- name: Lint | ||
run: yarn lint | ||
type-checking: | ||
needs: build | ||
name: Type Checking | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Monorepo | ||
uses: ./.github/actions/setup-monorepo | ||
|
||
- name: Type Check | ||
run: yarn typecheck | ||
build-storybook: | ||
needs: type-checking | ||
name: Build Storybook | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Monorepo | ||
uses: ./.github/actions/setup-monorepo | ||
|
||
- name: Build Storybook | ||
run: yarn storybook:build | ||
unit-testing: | ||
needs: build | ||
name: Unit Testing | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Monorepo | ||
uses: ./.github/actions/setup-monorepo | ||
|
||
- name: Test | ||
run: yarn test | ||
|
||
translations-validation: | ||
needs: build | ||
name: Translations Validation | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Monorepo | ||
uses: ./.github/actions/setup-monorepo | ||
|
||
- name: Translations Validator | ||
run: ./lingui-translations-validator.sh | ||
|
||
files-changed: | ||
name: Checking modified files | ||
runs-on: ubuntu-latest | ||
outputs: | ||
e2e-npm-tests-dependencies: ${{ steps.changes.outputs.e2e-npm-tests-dependencies }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dorny/paths-filter@v3 | ||
id: changes | ||
with: | ||
filters: | | ||
e2e-npm-tests-dependencies: | ||
- 'packages/sdk-react/**' | ||
- 'packages/sdk-api/**' | ||
- 'packages/rollup-config/**' | ||
- 'e2e/**' | ||
- 'package.json' | ||
- 'yarn.lock' | ||
- '.changeset/**' | ||
e2e-npm-testing: | ||
name: E2E NPM Testing | ||
if: needs.files-changed.outputs.e2e-npm-tests-dependencies == 'true' | ||
needs: [ build, files-changed ] | ||
runs-on: ubuntu-latest | ||
env: | ||
NPM_PUBLISH_REGISTRY: 'http://localhost:4873' | ||
UNSAFE_HTTP_WHITELIST: 'localhost' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Monorepo | ||
uses: ./.github/actions/setup-monorepo | ||
|
||
- name: Build | ||
run: yarn build | ||
|
||
- name: Export projects directory environment variable | ||
id: export-projects-directory | ||
run: echo "path=${{ runner.temp }}/projects" >> $GITHUB_OUTPUT | ||
|
||
- name: Copy Playground for E2E Tests | ||
run: | | ||
mkdir -p "$TEST_PROJECTS_DIR" | ||
cp -a e2e/projects/. "$TEST_PROJECTS_DIR/" | ||
env: | ||
TEST_PROJECTS_DIR: "${{ steps.export-projects-directory.outputs.path }}" | ||
|
||
- name: Publish to Private Registry | ||
run: yarn run "e2e:publish-to-private-registry" | ||
env: | ||
TEST_PROJECTS_DIR: "${{ steps.export-projects-directory.outputs.path }}" | ||
|
||
- name: Update Projects from Private Registry | ||
run: yarn run "e2e:update-projects-from-private-registry" | ||
env: | ||
TEST_PROJECTS_DIR: "${{ steps.export-projects-directory.outputs.path }}" | ||
|
||
- name: Build E2E Projects | ||
run: yarn run "e2e:build-projects" | ||
env: | ||
TEST_PROJECTS_DIR: "${{ steps.export-projects-directory.outputs.path }}" |
Oops, something went wrong.