Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: decompose #258

Merged
merged 1 commit into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/auto-add-to-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ jobs:
automate-project-columns:
runs-on: ubuntu-latest
steps:
- uses: taiga-family/ci/actions/setup-project@1.16.0
- uses: taiga-family/ci/actions/setup/project@1.20.0
with:
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}
4 changes: 2 additions & 2 deletions .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ jobs:
- uses: actions/[email protected]
with:
submodules: recursive
- uses: taiga-family/ci/actions/variables@1.16.0
- uses: taiga-family/ci/actions/two-approve@1.16.0
- uses: taiga-family/ci/actions/setup/variables@1.20.0
- uses: taiga-family/ci/actions/auto/approve/double@1.20.0
if: env.TAIGA_FAMILY_BOT_IS_AUTHOR == 'true'
with:
token1: ${{ secrets.GITHUB_TOKEN }}
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/auto-author-assign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ jobs:
- uses: actions/[email protected]
with:
submodules: recursive
- uses: taiga-family/ci/actions/variables@1.16.0
- name: Auto assign
- uses: taiga-family/ci/actions/setup/variables@1.20.0
- uses: toshimaru/auto-author-assign@v2.0.1
if: env.IS_OWNER_MODE == 'true'
uses: toshimaru/[email protected]
with:
repo-token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}
4 changes: 2 additions & 2 deletions .github/workflows/auto-cleanup-caches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
- uses: actions/[email protected]
with:
submodules: recursive
- uses: taiga-family/ci/actions/cleanup-cache@1.16.0
- uses: taiga-family/ci/actions/auto/cleanup-cache@1.20.0
if: github.event_name == 'push'
with:
branch-name: ${{ github.head_ref || github.ref_name }}
- uses: taiga-family/ci/actions/cleanup-cache@1.16.0
- uses: taiga-family/ci/actions/auto/cleanup-cache@1.20.0
if: github.event_name == 'pull_request'
with:
branch-name: refs/pull/${{ github.event.pull_request.number }}/merge
2 changes: 1 addition & 1 deletion .github/workflows/auto-dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ jobs:
- uses: actions/[email protected]
with:
submodules: recursive
- uses: taiga-family/ci/actions/dependency-review@1.16.0
- uses: taiga-family/ci/actions/security/dependency-review@1.20.0
2 changes: 1 addition & 1 deletion .github/workflows/auto-remove-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ jobs:
- uses: actions/[email protected]
with:
submodules: recursive
- uses: taiga-family/ci/actions/auto-remove-label@1.16.0
- uses: taiga-family/ci/actions/auto/remove-label@1.20.0
8 changes: 4 additions & 4 deletions .github/workflows/auto-sync-submodule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ jobs:
- uses: actions/[email protected]
with:
submodules: recursive
- uses: taiga-family/ci/actions/setup-git@1.16.0
- uses: taiga-family/ci/actions/setup/config/git@1.20.0
with:
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}
- uses: taiga-family/ci/actions/git-sync-submodule@1.16.0
- uses: taiga-family/ci/actions/git-status@1.16.0
- uses: taiga-family/ci/actions/git/sync-submodule@1.20.0
- uses: taiga-family/ci/actions/git/status@1.20.0
id: git
- uses: taiga-family/ci/actions/npm-install@1.16.0
- uses: taiga-family/ci/actions/run/npm/install@1.20.0
if: steps.git.outputs.modified == 'true'
- name: Create Pull Request
if: steps.git.outputs.modified == 'true'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
- uses: actions/[email protected]
with:
submodules: recursive
- uses: taiga-family/ci/actions/variables@1.16.0
- uses: taiga-family/ci/actions/setup-node@1.16.0
- uses: taiga-family/ci/actions/setup/variables@1.20.0
- uses: taiga-family/ci/actions/setup/node@1.20.0
- run: npm run build

concurrency:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
- uses: actions/[email protected]
with:
submodules: recursive
- uses: taiga-family/ci/actions/variables@1.16.0
- uses: taiga-family/ci/actions/setup-node@1.16.0
- uses: taiga-family/ci/actions/setup/variables@1.20.0
- uses: taiga-family/ci/actions/setup/node@1.20.0
- run: npx nx build tui-editor

concurrency:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
- uses: actions/[email protected]
with:
submodules: recursive
- uses: taiga-family/ci/actions/variables@1.16.0
- uses: taiga-family/ci/actions/setup-node@1.16.0
- uses: taiga-family/ci/actions/setup/variables@1.20.0
- uses: taiga-family/ci/actions/setup/node@1.20.0
- run: npx nx build editor-demo
- name: Deploy preview
uses: FirebaseExtended/action-hosting-deploy@v0
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
- uses: actions/[email protected]
with:
submodules: recursive
- uses: taiga-family/ci/actions/variables@1.16.0
- uses: taiga-family/ci/actions/setup-node@1.16.0
- uses: taiga-family/ci/actions/setup/variables@1.20.0
- uses: taiga-family/ci/actions/setup/node@1.20.0
- run: npx nx build-gh-pages editor-demo
- uses: taiga-family/ci/actions/setup-deploy@1.16.0
- uses: taiga-family/ci/actions/deploy/github-pages@1.20.0
with:
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}
folder: dist/demo/browser
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
- uses: actions/[email protected]
with:
submodules: recursive
- uses: taiga-family/ci/actions/variables@1.16.0
- uses: taiga-family/ci/actions/rebase@1.16.0
- uses: taiga-family/ci/actions/setup/variables@1.20.0
- uses: taiga-family/ci/actions/run/rebase@1.20.0
continue-on-error: true
- uses: taiga-family/ci/actions/setup-node@1.16.0
- uses: taiga-family/ci/actions/setup/node@1.20.0

- name: Building demo-app of git-branch without cache
run: npx nx build editor-demo --output-path ${{ env.DIST }}
Expand All @@ -35,8 +35,8 @@ jobs:
- uses: actions/[email protected]
with:
submodules: recursive
- uses: taiga-family/ci/actions/variables@1.16.0
- uses: taiga-family/ci/actions/setup-node@1.16.0
- uses: taiga-family/ci/actions/setup/variables@1.20.0
- uses: taiga-family/ci/actions/setup/node@1.20.0

- name: Download cache / ${{ env.CACHE_DIST_KEY }}
uses: actions/cache/[email protected]
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
- uses: actions/[email protected]
with:
submodules: recursive
- uses: taiga-family/ci/actions/variables@1.16.0
- uses: taiga-family/ci/actions/setup/variables@1.20.0

- name: Download artifacts / ${{ env.SNAPSHOTS_CACHE_KEY }}
continue-on-error: true
Expand Down
15 changes: 6 additions & 9 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,12 @@ jobs:
- uses: actions/[email protected]
with:
submodules: recursive
- uses: taiga-family/ci/actions/[email protected]
- uses: taiga-family/ci/actions/[email protected]

- name: Lint check
run: |
npm run typecheck
npm run prettier -- --check
npm run stylelint
npm run lint
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- run: npm run typecheck
- run: npm run prettier -- --check
- run: npm run stylelint
- run: npm run lint

concurrency:
group: lint-${{ github.head_ref }}
Expand Down
17 changes: 7 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ jobs:
persist-credentials: false
ref: ${{ github.head_ref }}
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}
- uses: taiga-family/ci/actions/setup-node@1.16.0
- uses: taiga-family/ci/actions/setup-git@1.16.0
- uses: taiga-family/ci/actions/setup/node@1.20.0
- uses: taiga-family/ci/actions/setup/config/git@1.20.0
with:
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}
- uses: taiga-family/ci/actions/setup-npm@1.16.0
- uses: taiga-family/ci/actions/setup/config/npm@1.20.0
with:
token: ${{ secrets.NPM_TOKEN }}

Expand All @@ -47,20 +47,17 @@ jobs:
npx lerna version --no-private
fi

- name: Build
run: npx nx build tui-editor
- run: npx nx build tui-editor

- name: Publish
- run: npx nx publish tui-editor
if: always()
run: npx nx publish tui-editor

- name: Get new version
id: info
- id: info
run: |
echo "version=@tinkoff/tui-editor@$(node -p "require('./libs/tui-editor/package.json').version")" >> $GITHUB_OUTPUT

- name: Announce to Telegram
uses: taiga-family/ci/actions/telegram/announce@1.19.0
uses: taiga-family/ci/actions/messenger/telegram/announce@1.20.0
with:
chatId: ${{ secrets.TAIGA_TELEGRAM_CHAT_ID }}
topicId: ${{ secrets.TAIGA_TELEGRAM_CHAT_THREAD_ID }}
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/snapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@ jobs:
- uses: actions/[email protected]
with:
submodules: recursive
- uses: taiga-family/ci/actions/variables@1.16.0
- uses: taiga-family/ci/actions/setup-node@1.16.0
- uses: taiga-family/ci/actions/setup/variables@1.20.0
- uses: taiga-family/ci/actions/setup/node@1.20.0
- run: npx nx build editor-demo
- name: Publish snapshots
uses: s0/[email protected]
- uses: s0/[email protected]
env:
REPO: self
FOLDER: ${{ env.DIST }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
- uses: actions/[email protected]
with:
submodules: recursive
- uses: taiga-family/ci/actions/variables@1.16.0
- uses: taiga-family/ci/actions/setup-node@1.16.0
- uses: taiga-family/ci/actions/setup/variables@1.20.0
- uses: taiga-family/ci/actions/setup/node@1.20.0
- run: npx nx test tui-editor
- uses: codecov/[email protected]
with:
Expand Down
Loading