-
Notifications
You must be signed in to change notification settings - Fork 23
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
Showing
26 changed files
with
19,979 additions
and
9,226 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
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
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: taiga-family/ci/actions/setup/variables@v1.32.2 | ||
- uses: taiga-family/ci/actions/setup/variables@v1.33.1 | ||
- uses: toshimaru/[email protected] | ||
if: env.IS_OWNER_MODE == 'true' | ||
with: | ||
|
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 |
---|---|---|
|
@@ -13,11 +13,11 @@ jobs: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: taiga-family/ci/actions/auto/cleanup-cache@v1.32.2 | ||
- uses: taiga-family/ci/actions/auto/cleanup-cache@v1.33.1 | ||
if: github.event_name == 'push' | ||
with: | ||
branch-name: ${{ github.head_ref || github.ref_name }} | ||
- uses: taiga-family/ci/actions/auto/cleanup-cache@v1.32.2 | ||
- uses: taiga-family/ci/actions/auto/cleanup-cache@v1.33.1 | ||
if: github.event_name == 'pull_request' | ||
with: | ||
branch-name: refs/pull/${{ github.event.pull_request.number }}/merge |
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 |
---|---|---|
|
@@ -9,4 +9,4 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: taiga-family/ci/actions/security/dependency-review@v1.32.2 | ||
- uses: taiga-family/ci/actions/security/dependency-review@v1.33.1 |
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 |
---|---|---|
|
@@ -7,8 +7,8 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: taiga-family/ci/actions/setup/variables@v1.32.2 | ||
- uses: taiga-family/ci/actions/auto/label-when-approved@v1.32.2 | ||
- uses: taiga-family/ci/actions/setup/variables@v1.33.1 | ||
- uses: taiga-family/ci/actions/auto/label-when-approved@v1.33.1 | ||
with: | ||
approvals: 1 | ||
token: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
|
@@ -8,4 +8,4 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: taiga-family/ci/actions/auto/remove-label@v1.32.2 | ||
- uses: taiga-family/ci/actions/auto/remove-label@v1.33.1 |
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 |
---|---|---|
|
@@ -8,11 +8,13 @@ jobs: | |
ci: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- run: npm run build | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- run: npm run prettier -- --check | ||
- run: npm run lint | ||
- run: npm run build | ||
env: | ||
NODE_OPTIONS: --openssl-legacy-provider | ||
- run: npm run test | ||
env: | ||
NODE_OPTIONS: --openssl-legacy-provider | ||
|
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,65 @@ | ||
name: ⚠️ Release | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
forcePush: | ||
type: boolean | ||
required: false | ||
description: --force-publish package | ||
mode: | ||
type: choice | ||
description: force package to be versioned (depend --force-publish) | ||
required: false | ||
default: minor | ||
options: | ||
- patch | ||
- minor | ||
- major | ||
|
||
jobs: | ||
run-release: | ||
name: Run release | ||
runs-on: ubuntu-latest | ||
env: | ||
GH_TOKEN: ${{ secrets.TAIGA_FAMILY_BOT_PAT }} | ||
steps: | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
with: | ||
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }} | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- uses: taiga-family/ci/actions/setup/config/[email protected] | ||
with: | ||
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }} | ||
- uses: taiga-family/ci/actions/setup/config/[email protected] | ||
with: | ||
token: ${{ secrets.TINKOFF_SCOPE_NPM_TOKEN }} | ||
|
||
- name: Lerna update version of packages | ||
if: always() | ||
run: | | ||
if [[ ${{ github.event.inputs.forcePush }} == "true" ]]; then | ||
npx lerna version ${{ github.event.inputs.mode }} --no-private --force-publish | ||
else | ||
npx lerna version --no-private | ||
fi | ||
- run: npx nx build ng-polymorpheus | ||
|
||
- run: npx nx publish ng-polymorpheus | ||
if: always() | ||
|
||
- id: info | ||
run: | | ||
echo "version=@tinkoff/ng-polymorpheus@$(node -p "require('./projects/ng-polymorpheus/package.json').version")" >> $GITHUB_OUTPUT | ||
- name: Announce to Telegram | ||
uses: taiga-family/ci/actions/messenger/telegram/[email protected] | ||
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 }} | ||
cancel-in-progress: true |
This file was deleted.
Oops, something went wrong.
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,33 @@ | ||
{ | ||
"$schema": "node_modules/lerna/schemas/lerna-schema.json", | ||
"version": "independent", | ||
"packages": ["projects/*"], | ||
"concurrency": 1, | ||
"stream": true, | ||
"npmClient": "npm", | ||
"changelog": true, | ||
"private": false, | ||
"conventionalCommits": true, | ||
"ignoreChanges": [ | ||
"**/node_modules/**", | ||
"**/dist/**", | ||
"**/tests/**", | ||
"**/*.spec.ts", | ||
"**/.github/**", | ||
"**/CHANGELOG.md", | ||
"**/project.json", | ||
"**/ng-packages.json" | ||
], | ||
"command": { | ||
"version": { | ||
"allowBranch": "main", | ||
"commitHooks": false, | ||
"createRelease": "github" | ||
}, | ||
"publish": { | ||
"yes": true, | ||
"registry": "https://registry.npmjs.org", | ||
"message": "chore(release): publish @tinkoff/ng-polymorpheus" | ||
} | ||
} | ||
} |
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,37 @@ | ||
{ | ||
"npmScope": "ng-polymorpheus", | ||
"tasksRunnerOptions": { | ||
"default": { | ||
"runner": "nx-cloud", | ||
"options": { | ||
"parallel": 1, | ||
"cacheableOperations": ["build", "test", "lint"] | ||
} | ||
} | ||
}, | ||
"affected": { | ||
"defaultBase": "origin/main" | ||
}, | ||
"workspaceLayout": { | ||
"libsDir": "projects", | ||
"appsDir": "projects" | ||
}, | ||
"defaultProject": "demo", | ||
"$schema": "./node_modules/nx/schemas/nx-schema.json", | ||
"namedInputs": { | ||
"default": ["{projectRoot}/**/*", "sharedGlobals"], | ||
"sharedGlobals": [ | ||
"{workspaceRoot}/nx.json", | ||
"{workspaceRoot}/tsconfig.*.json", | ||
"{workspaceRoot}/tsconfig.json" | ||
] | ||
}, | ||
"targetDefaults": { | ||
"build": { | ||
"inputs": ["default"] | ||
}, | ||
"test": { | ||
"inputs": ["default"] | ||
} | ||
} | ||
} |
Oops, something went wrong.