generated from Tinkoff/angular-open-source-starter
-
Notifications
You must be signed in to change notification settings - Fork 35
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
splincode
committed
Sep 22, 2024
1 parent
53a005f
commit a980154
Showing
21 changed files
with
7,253 additions
and
6,582 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
39 changes: 20 additions & 19 deletions
39
.github/workflows/npm-publish.yml → .github/workflows/release.yml
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 |
---|---|---|
@@ -1,34 +1,35 @@ | ||
name: Publish Maskito packages | ||
name: ⚠️ Release | ||
|
||
on: | ||
push: | ||
branches: ['release/*'] | ||
workflow_dispatch: | ||
inputs: | ||
mode: | ||
type: choice | ||
description: Bump version as requested | ||
required: true | ||
options: | ||
- patch | ||
- minor | ||
- alpha | ||
- major | ||
|
||
jobs: | ||
publish: | ||
name: Publish | ||
release: | ||
runs-on: ubuntu-latest | ||
env: | ||
NX_SKIP_NX_CACHE: true | ||
if: !contains(github.event.head_commit.message , 'chore(release)') | ||
steps: | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- uses: taiga-family/ci/actions/setup/config/npm@v1.83.0 | ||
- uses: taiga-family/ci/actions/run/release-it@v1.83.0 | ||
with: | ||
token: ${{ secrets.NPM_TOKEN }} | ||
|
||
- name: Build publishable libraries | ||
run: npx nx run-many --target build --all --exclude=demo | ||
|
||
- name: Publish libraries | ||
run: npx nx run-many --target publish --all --exclude=demo | ||
ref: ${{ github.ref }} | ||
mode: ${{ github.event.inputs.mode }} | ||
npmToken: ${{ secrets.NPM_TOKEN }} | ||
githubToken: ${{ secrets.TAIGA_FAMILY_BOT_PAT }} | ||
|
||
- name: Get new version | ||
- uses: taiga-family/ci/actions/run/[email protected] | ||
id: info | ||
run: echo "version=v$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT | ||
|
||
- name: Announce to Telegram | ||
uses: taiga-family/ci/actions/messenger/telegram/[email protected] | ||
|
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 @@ | ||
module.exports = require('@taiga-ui/release-it-config'); |
Oops, something went wrong.