Skip to content

Commit f42fc35

Browse files
committed
fix: forgot publish licence
1 parent 1ec8d4c commit f42fc35

File tree

10 files changed

+47
-103
lines changed

10 files changed

+47
-103
lines changed

.github/workflows/announce.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/auto-approve.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ jobs:
1010
outputs:
1111
matrix: ${{ steps.matrix.outputs.value }}
1212
steps:
13-
- uses: taiga-family/ci/actions/setup/checkout@v1.79.0
14-
- uses: taiga-family/ci/actions/setup/variables@v1.79.0
13+
- uses: taiga-family/ci/actions/setup/checkout@v1.80.0
14+
- uses: taiga-family/ci/actions/setup/variables@v1.80.0
1515
- id: matrix
1616
if: env.IS_TAIGA_FAMILY_BOT_PR_AUTHOR == 'true'
1717
run: echo "value=$JOBS_NAME" >> $GITHUB_OUTPUT
@@ -24,7 +24,7 @@ jobs:
2424
matrix:
2525
value: ${{ fromJSON(needs.setup.outputs.matrix) }}
2626
steps:
27-
- uses: taiga-family/ci/actions/run/wait-job@v1.79.0
27+
- uses: taiga-family/ci/actions/run/wait-job@v1.80.0
2828
with:
2929
token: ${{ secrets.GITHUB_TOKEN }}
3030
job: ${{ matrix.value }}
@@ -33,11 +33,11 @@ jobs:
3333
needs: [wait]
3434
runs-on: ubuntu-latest
3535
steps:
36-
- uses: taiga-family/ci/actions/auto/approve/double@v1.79.0
36+
- uses: taiga-family/ci/actions/auto/approve/double@v1.80.0
3737
with:
3838
token1: ${{ secrets.GITHUB_TOKEN }}
3939
token2: ${{ secrets.TAIGA_FAMILY_APPROVE_BOT_PAT }}
40-
- uses: taiga-family/ci/actions/run/merge@v1.79.0
40+
- uses: taiga-family/ci/actions/run/merge@v1.80.0
4141
with:
4242
token: ${{ secrets.TAIGA_FAMILY_APPROVE_BOT_PAT }}
4343

.github/workflows/auto-author-assign.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v4.1.7
12-
- uses: taiga-family/ci/actions/setup/variables@v1.79.0
12+
- uses: taiga-family/ci/actions/setup/variables@v1.80.0
1313
- uses: toshimaru/auto-author-assign@v2.1.1
1414
if: env.IS_OWNER_MODE == 'true'
1515
with:

.github/workflows/auto-label.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v4.1.7
10-
- uses: taiga-family/ci/actions/setup/variables@v1.79.0
11-
- uses: taiga-family/ci/actions/auto/label-when-approved@v1.79.0
10+
- uses: taiga-family/ci/actions/setup/variables@v1.80.0
11+
- uses: taiga-family/ci/actions/auto/label-when-approved@v1.80.0
1212
with:
1313
approvals: 1
1414
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/auto-remove-label.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
ci:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: taiga-family/ci/actions/setup/checkout@v1.79.0
16-
- uses: taiga-family/ci/actions/setup/node@v1.79.0
15+
- uses: taiga-family/ci/actions/setup/checkout@v1.80.0
16+
- uses: taiga-family/ci/actions/setup/node@v1.80.0
1717

1818
- run: |
1919
if [[ "${{ env.SUPPORT_AUTO_PUSH }}" == "true" ]]; then
@@ -30,7 +30,7 @@ jobs:
3030
- run: npx nx build demo
3131
- run: npx nx test ng-polymorpheus
3232
- uses: codecov/codecov-action@v4
33-
- uses: taiga-family/ci/actions/auto/push@v1.79.0
33+
- uses: taiga-family/ci/actions/auto/push@v1.80.0
3434
with:
3535
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}
3636

.github/workflows/release.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,24 @@ jobs:
2121
runs-on: ubuntu-latest
2222
if: "!contains(github.event.head_commit.message, 'chore(release)')"
2323
steps:
24-
- uses: taiga-family/ci/actions/setup/checkout@v1.79.0
25-
- uses: taiga-family/ci/actions/run/release-it@v1.79.0
24+
- uses: taiga-family/ci/actions/setup/checkout@v1.80.0
25+
- uses: taiga-family/ci/actions/run/release-it@v1.80.0
2626
with:
2727
ref: ${{ github.ref }}
2828
mode: ${{ github.event.inputs.mode }}
2929
npmToken: ${{ secrets.TAIGA_UI_SCOPE_NPM_TOKEN }}
3030
githubToken: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}
3131

32-
concurrency:
33-
group: release-${{ github.workflow }}-${{ github.ref }}
34-
cancel-in-progress: true
32+
- id: info
33+
run: |
34+
echo "version=v$(node -p "require('./projects/ng-polymorpheus/package.json').version")" >> $GITHUB_OUTPUT
35+
echo "name=$(node -p "require('./projects/ng-polymorpheus/package.json').name")" >> $GITHUB_OUTPUT
36+
37+
- name: Announce to Telegram
38+
uses: taiga-family/ci/actions/messenger/telegram/announce@v1.80.0
39+
with:
40+
chatId: ${{ secrets.TAIGA_TELEGRAM_CHAT_ID }}
41+
topicId: ${{ secrets.TAIGA_TELEGRAM_CHAT_THREAD_ID }}
42+
token: ${{ secrets.TAIGA_TELEGRAM_BOT_TOKEN }}
43+
version: ${{ steps.info.outputs.version }}
44+
textLink: ${{ steps.info.outputs.name }}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
"test": "nx test ng-polymorpheus",
4343
"lint": "eslint .",
4444
"typecheck": "tsc --noEmit --skipLibCheck",
45-
"bump": "npx syncer"
45+
"prebump": "npx syncer && npx nx build ng-polymorpheus",
46+
"bump": "npx nx publish ng-polymorpheus"
4647
},
4748
"commitlint": {
4849
"extends": [

projects/ng-polymorpheus/README.md

Lines changed: 0 additions & 38 deletions
This file was deleted.

projects/ng-polymorpheus/project.json

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,35 @@
77
"build": {
88
"executor": "@angular-devkit/build-angular:ng-packagr",
99
"options": {
10-
"tsConfig": "projects/ng-polymorpheus/tsconfig.lib.json",
11-
"project": "projects/ng-polymorpheus/ng-package.json"
10+
"tsConfig": "projects/{projectName}/tsconfig.lib.json",
11+
"project": "projects/{projectName}/ng-package.json"
1212
}
1313
},
1414
"test": {
1515
"executor": "@nx/jest:jest",
16-
"outputs": ["{workspaceRoot}/coverage/ng-polymorpheus"],
16+
"outputs": ["{workspaceRoot}/coverage/{projectName}"],
1717
"options": {
18-
"jestConfig": "projects/ng-polymorpheus/jest.config.ts"
18+
"jestConfig": "projects/{projectName}/jest.config.ts"
1919
}
2020
},
21-
"publish": {
21+
"prepublish": {
2222
"executor": "nx:run-commands",
2323
"options": {
24-
"command": "export TAG=\"$(node -p \"require('./package.json')?.version?.includes('alpha') ? 'alpha' : 'latest'\")\" && npm publish --tag $TAG ./dist/ng-polymorpheus --access=public --verbose --ignore-scripts || echo 'already published'"
24+
"command": "cp ./LICENSE ./README.md ./dist/{projectName}"
2525
}
26+
},
27+
"publish": {
28+
"executor": "nx:run-commands",
29+
"options": {
30+
"command": "npm publish ./dist/{projectName} --ignore-scripts"
31+
},
32+
"dependsOn": [
33+
{
34+
"target": "prepublish",
35+
"params": "ignore",
36+
"dependencies": false
37+
}
38+
]
2639
}
2740
}
2841
}

0 commit comments

Comments
 (0)