diff --git a/.github/workflows/auto-add-to-project.yml b/.github/workflows/auto-add-to-project.yml index 8acaa6185..8ca8b4888 100644 --- a/.github/workflows/auto-add-to-project.yml +++ b/.github/workflows/auto-add-to-project.yml @@ -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 }} diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml index 6711f9ff5..83f919eb0 100644 --- a/.github/workflows/auto-approve.yml +++ b/.github/workflows/auto-approve.yml @@ -8,8 +8,8 @@ jobs: pull-requests: write steps: - uses: actions/checkout@v4.1.0 - - 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 }} diff --git a/.github/workflows/auto-author-assign.yml b/.github/workflows/auto-author-assign.yml index 99290a911..7e269b274 100644 --- a/.github/workflows/auto-author-assign.yml +++ b/.github/workflows/auto-author-assign.yml @@ -9,10 +9,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4.1.0 - - 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/auto-author-assign@v2.0.1 with: repo-token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }} diff --git a/.github/workflows/auto-cleanup-caches.yml b/.github/workflows/auto-cleanup-caches.yml index a1ab15d21..275a6f2bb 100644 --- a/.github/workflows/auto-cleanup-caches.yml +++ b/.github/workflows/auto-cleanup-caches.yml @@ -13,11 +13,11 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - uses: actions/checkout@v4.1.0 - - 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 diff --git a/.github/workflows/auto-dependency-review.yml b/.github/workflows/auto-dependency-review.yml index 5ecb1db31..54f10395f 100644 --- a/.github/workflows/auto-dependency-review.yml +++ b/.github/workflows/auto-dependency-review.yml @@ -9,4 +9,4 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4.1.0 - - uses: taiga-family/ci/actions/dependency-review@1.16.0 + - uses: taiga-family/ci/actions/security/dependency-review@1.20.0 diff --git a/.github/workflows/auto-label.yml b/.github/workflows/auto-label.yml index 0885305c4..956c6a45a 100644 --- a/.github/workflows/auto-label.yml +++ b/.github/workflows/auto-label.yml @@ -7,8 +7,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4.1.0 - - uses: taiga-family/ci/actions/variables@1.16.0 - - uses: taiga-family/ci/actions/label-when-approved@1.16.0 + - uses: taiga-family/ci/actions/setup/variables@1.20.0 + - uses: taiga-family/ci/actions/auto/label-when-approved@1.20.0 with: approvals: 1 token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/auto-remove-label.yml b/.github/workflows/auto-remove-label.yml index 90378d2d5..7516c7dc7 100644 --- a/.github/workflows/auto-remove-label.yml +++ b/.github/workflows/auto-remove-label.yml @@ -8,4 +8,4 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4.1.0 - - uses: taiga-family/ci/actions/auto-remove-label@1.16.0 + - uses: taiga-family/ci/actions/auto/remove-label@1.20.0 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4a3fb2181..bbf80dacb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,11 +11,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4.1.0 - - name: Setup Node.js and Cache - uses: taiga-family/ci/actions/setup-node@1.16.0 - - - name: Build packages - run: npx nx run-many --target build --all --exclude=demo + - uses: taiga-family/ci/actions/setup/node@1.20.0 + - run: npx nx run-many --target build --all --exclude=demo build-demo: name: Demo @@ -23,11 +20,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4.1.0 - - name: Setup Node.js and Cache - uses: taiga-family/ci/actions/setup-node@1.16.0 - - - name: Build demo application for Github Pages - run: npx nx build-gh-pages + - uses: taiga-family/ci/actions/setup/node@1.20.0 + - run: npx nx build-gh-pages concurrency: group: build-${{ github.head_ref }} diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index a030df75d..7221f7d25 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -31,8 +31,8 @@ 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 }} diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index 75d877bd2..6d5246c2e 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -11,16 +11,13 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4.1.0 - - name: Setup Node.js and Cache - uses: taiga-family/ci/actions/setup-node@1.16.0 - + - uses: taiga-family/ci/actions/setup/node@1.20.0 - run: npm run build - name: Debug output run: tree dist/demo/browser -P '*.html' - - name: Deploy preview - uses: FirebaseExtended/action-hosting-deploy@v0 + - uses: FirebaseExtended/action-hosting-deploy@v0 continue-on-error: true with: repoToken: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 32c4a337e..46dace8cc 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,14 +9,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4.1.0 - - name: Setup Node.js and Cache - uses: taiga-family/ci/actions/setup-node@1.16.0 - - - name: Build demo - run: npx nx build-gh-pages - - - name: Deploy - uses: JamesIves/github-pages-deploy-action@v4.4.3 + - uses: taiga-family/ci/actions/setup/node@1.20.0 + - run: npx nx build-gh-pages + - uses: JamesIves/github-pages-deploy-action@v4.4.3 with: branch: gh-pages folder: dist/demo/browser diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 9a3b2941d..90ec054a5 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -17,8 +17,7 @@ jobs: with: fetch-depth: 10 - - name: Setup Node.js and Cache - uses: taiga-family/ci/actions/setup-node@1.16.0 + - uses: taiga-family/ci/actions/setup/node@1.20.0 - name: Mark demo-app directory for persist in cache uses: actions/cache@v3 @@ -44,8 +43,7 @@ jobs: name: Kit / ${{ matrix.project }} steps: - uses: actions/checkout@v4.1.0 - - name: Setup Node.js and Cache - uses: taiga-family/ci/actions/setup-node@1.16.0 + - uses: taiga-family/ci/actions/setup/node@1.20.0 - name: Download demo build from cache uses: actions/cache@v3 @@ -70,8 +68,7 @@ jobs: name: Recipes steps: - uses: actions/checkout@v4.1.0 - - name: Setup Node.js and Cache - uses: taiga-family/ci/actions/setup-node@1.16.0 + - uses: taiga-family/ci/actions/setup/node@1.20.0 - name: Download demo build from cache uses: actions/cache@v3 @@ -94,8 +91,7 @@ jobs: name: Others steps: - uses: actions/checkout@v4.1.0 - - name: Setup Node.js and Cache - uses: taiga-family/ci/actions/setup-node@1.16.0 + - uses: taiga-family/ci/actions/setup/node@1.20.0 - name: Download demo build from cache uses: actions/cache@v3 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ffe430969..a28bfc271 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -6,92 +6,61 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4.1.0 - - - name: Setup Node.js and Cache - uses: taiga-family/ci/actions/setup-node@1.16.0 - - - name: Typecheck - run: npm run typecheck + - uses: taiga-family/ci/actions/setup/node@1.20.0 + - run: npm run typecheck cspell: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4.1.0 - - - name: Setup Node.js and Cache - uses: taiga-family/ci/actions/setup-node@1.16.0 - - - name: Run cspell - run: npm run cspell -- --no-progress + - uses: taiga-family/ci/actions/setup/node@1.20.0 + - run: npm run cspell -- --no-progress prettier: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4.1.0 - - name: Setup global variables - uses: taiga-family/ci/actions/variables@1.16.0 - + - uses: taiga-family/ci/actions/setup/variables@1.20.0 - uses: actions/checkout@v4.1.0 if: env.SUPPORT_AUTO_PUSH == 'true' with: ref: ${{ github.head_ref }} token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }} - - - name: Setup Node.js and Cache - uses: taiga-family/ci/actions/setup-node@1.16.0 - - - name: Run prettier - run: npm run prettier ${{ env.SUPPORT_AUTO_PUSH == 'true' && '-- --write' || '-- --check' }} - - - name: Apply changes after linting + - uses: taiga-family/ci/actions/setup/node@1.20.0 + - run: npm run prettier ${{ env.SUPPORT_AUTO_PUSH == 'true' && '-- --write' || '-- --check' }} + - uses: taiga-family/ci/actions/auto/push@1.20.0 if: env.SUPPORT_AUTO_PUSH == 'true' - uses: taiga-family/ci/actions/auto-push@1.16.0 stylelint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4.1.0 - - name: Setup global variables - uses: taiga-family/ci/actions/variables@1.16.0 - + - uses: taiga-family/ci/actions/setup/variables@1.20.0 - uses: actions/checkout@v4.1.0 if: env.SUPPORT_AUTO_PUSH == 'true' with: ref: ${{ github.head_ref }} token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }} - - - name: Setup Node.js and Cache - uses: taiga-family/ci/actions/setup-node@1.16.0 - - - name: Run stylelint - run: npm run stylelint ${{ env.SUPPORT_AUTO_PUSH == 'true' && '-- --fix' || '' }} - - - name: Apply changes after linting + - uses: taiga-family/ci/actions/setup/node@1.20.0 + - run: npm run stylelint ${{ env.SUPPORT_AUTO_PUSH == 'true' && '-- --fix' || '' }} + - uses: taiga-family/ci/actions/auto/push@1.20.0 if: env.SUPPORT_AUTO_PUSH == 'true' - uses: taiga-family/ci/actions/auto-push@1.16.0 eslint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4.1.0 - name: Setup global variables - uses: taiga-family/ci/actions/variables@1.16.0 - + uses: taiga-family/ci/actions/setup/variables@1.20.0 - uses: actions/checkout@v4.1.0 if: env.SUPPORT_AUTO_PUSH == 'true' with: ref: ${{ github.head_ref }} token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }} - - - name: Setup Node.js and Cache - uses: taiga-family/ci/actions/setup-node@1.16.0 - - - name: Run eslint - run: npm run lint ${{ env.SUPPORT_AUTO_PUSH == 'true' && '-- --fix' || '' }} - - - name: Apply changes after linting + - uses: taiga-family/ci/actions/setup/node@1.20.0 + - run: npm run lint ${{ env.SUPPORT_AUTO_PUSH == 'true' && '-- --fix' || '' }} + - uses: taiga-family/ci/actions/auto/push@1.20.0 if: env.SUPPORT_AUTO_PUSH == 'true' - uses: taiga-family/ci/actions/auto-push@1.16.0 concurrency: group: lint-${{ github.workflow }}-${{ github.ref }} diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index e9d0dff67..43fad07ae 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -12,14 +12,21 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4.1.0 - - name: Setup Node.js and Cache - uses: taiga-family/ci/actions/setup-node@1.16.0 + - uses: taiga-family/ci/actions/setup/node@1.20.0 + - run: npx nx run-many --target build --all --exclude=demo + - run: npx nx run-many --target publish --all --exclude=demo - - name: Build publishable libraries - run: npx nx run-many --target build --all --exclude=demo + - id: info + run: | + echo "version=v$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT - - name: Publish libraries - run: npx nx run-many --target publish --all --exclude=demo + - name: Announce to Telegram + 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 }} + token: ${{ secrets.TAIGA_TELEGRAM_BOT_TOKEN }} + version: ${{ steps.info.outputs.version }} concurrency: group: release-${{ github.workflow }}-${{ github.ref }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6b1553b1f..4d1b4a310 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,24 +12,18 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4.1.0 - - name: Setup Node.js and Cache - uses: taiga-family/ci/actions/setup-node@1.16.0 - - - name: Run tests - run: npx nx run-many --target test --all --coverage - + - uses: taiga-family/ci/actions/setup/node@1.20.0 + - run: npx nx run-many --target test --all --coverage - uses: codecov/codecov-action@v3.1.4 with: directory: ./coverage/core/ flags: summary,core name: core - - uses: codecov/codecov-action@v3.1.4 with: directory: ./coverage/kit/ flags: summary,kit name: kit - - uses: codecov/codecov-action@v3.1.4 with: directory: ./coverage/angular/