Skip to content

Commit

Permalink
feat: align version (#770)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Sep 20, 2024
1 parent b36bd73 commit 81eda42
Show file tree
Hide file tree
Showing 235 changed files with 45,381 additions and 49,837 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

54 changes: 0 additions & 54 deletions .eslintrc.json

This file was deleted.

5 changes: 5 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["github>taiga-family/renovate-config"],
"ignorePaths": ["libs/**/package.json"]
}
12 changes: 0 additions & 12 deletions .github/workflows/auto-add-to-project.yml

This file was deleted.

12 changes: 6 additions & 6 deletions .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ name: 🤖 Auto approve validation
on: pull_request

env:
JOBS_NAME: '[ "Build", "Lint", "Test" ]'
JOBS_NAME: '[ "ci" ]'

jobs:
setup:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.matrix.outputs.value }}
steps:
- uses: taiga-family/ci/actions/setup/checkout@v1.62.24
- uses: taiga-family/ci/actions/setup/variables@v1.62.24
- uses: taiga-family/ci/actions/setup/checkout@v1.80.0
- uses: taiga-family/ci/actions/setup/variables@v1.80.0
- id: matrix
if: env.IS_TAIGA_FAMILY_BOT_PR_AUTHOR == 'true'
run: echo "value=$JOBS_NAME" >> $GITHUB_OUTPUT
Expand All @@ -24,7 +24,7 @@ jobs:
matrix:
value: ${{ fromJSON(needs.setup.outputs.matrix) }}
steps:
- uses: taiga-family/ci/actions/run/wait-job@v1.62.24
- uses: taiga-family/ci/actions/run/wait-job@v1.80.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
job: ${{ matrix.value }}
Expand All @@ -33,11 +33,11 @@ jobs:
needs: [wait]
runs-on: ubuntu-latest
steps:
- uses: taiga-family/ci/actions/auto/approve/double@v1.62.24
- uses: taiga-family/ci/actions/auto/approve/double@v1.80.0
with:
token1: ${{ secrets.GITHUB_TOKEN }}
token2: ${{ secrets.TAIGA_FAMILY_APPROVE_BOT_PAT }}
- uses: taiga-family/ci/actions/run/merge@v1.62.24
- uses: taiga-family/ci/actions/run/merge@v1.80.0
with:
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}

Expand Down
16 changes: 0 additions & 16 deletions .github/workflows/auto-author-assign.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/auto-cleanup-caches.yml

This file was deleted.

12 changes: 0 additions & 12 deletions .github/workflows/auto-dependency-review.yml

This file was deleted.

14 changes: 0 additions & 14 deletions .github/workflows/auto-label.yml

This file was deleted.

11 changes: 0 additions & 11 deletions .github/workflows/auto-remove-label.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI
on:
pull_request:
push:
branches: [main]

jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]

- run: |
if [[ "${{ env.SUPPORT_AUTO_PUSH }}" == "true" ]]; then
npm run prettier -- --write
npm run stylelint -- --fix
npm run lint -- --fix
else
npm run prettier -- --check
npm run stylelint
npm run lint
fi
- run: npx nx run-many -t build --all
- run: npx nx run-many -t test --all
- uses: codecov/codecov-action@v4
- uses: taiga-family/ci/actions/auto/[email protected]
with:
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}

concurrency:
group: ci-${{ github.head_ref }}
cancel-in-progress: true
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: taiga-family/ci/actions/setup/checkout@v1.62.24
- uses: taiga-family/ci/actions/setup/variables@v1.62.24
- uses: taiga-family/ci/actions/setup/node@v1.62.24
- uses: taiga-family/ci/actions/setup/checkout@v1.80.0
- uses: taiga-family/ci/actions/setup/variables@v1.80.0
- uses: taiga-family/ci/actions/setup/node@v1.80.0
with:
node-version: 16.x
- run: npx nx run demo:build-gh-pages
- uses: taiga-family/ci/actions/deploy/github-pages@v1.62.24
- uses: taiga-family/ci/actions/deploy/github-pages@v1.80.0
with:
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}
folder: dist/apps/demo
Expand Down
61 changes: 0 additions & 61 deletions .github/workflows/pr.yml

This file was deleted.

57 changes: 17 additions & 40 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,26 @@
name: Release

env:
NX_BRANCH: ${{ github.event.number }}
NX_RUN_GROUP: ${{ github.run_id }}
name: ⚠️ Release

on:
workflow_dispatch:
inputs:
mode:
type: choice
description: Bump version as requested
required: true
options:
- minor
- patch
- major

jobs:
release:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'chore(release)')"
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/config/[email protected]
with:
token: ${{ secrets.NPM_TOKEN }}
- run: npm run release
env:
CI: true
GH_TOKEN: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}
test:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- uses: taiga-family/ci/actions/setup/[email protected]
- run: npx nx run-many --target test --all --coverage --coverageReporters lcov
- uses: actions/upload-artifact@v4
with:
name: coverage
path: |
coverage
- run: echo "::set-output name=projectMatrix::$(npx nx print-affected --target test --select tasks.target.project --all)"
id: set-project-matrix
- uses: actions/github-script@v7
id: parsed-project-matrix
env:
PROJECTS: '${{ steps.set-project-matrix.outputs.projectMatrix }}'
with:
script: |
return process.env.PROJECTS.split(',').map(p => './coverage/' + p.trim() + '/lcov.info').join(',');
- uses: codecov/codecov-action@v4
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/run/[email protected]
with:
files: ${{ steps.parsed-project-matrix.outputs.result }}
ref: ${{ github.ref }}
mode: ${{ github.event.inputs.mode }}
npmToken: ${{ secrets.NPM_TOKEN }}
githubToken: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

8 changes: 0 additions & 8 deletions .prettierignore

This file was deleted.

Loading

0 comments on commit 81eda42

Please sign in to comment.