Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add new release workflow #1666

Merged
merged 1 commit into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
101 changes: 0 additions & 101 deletions .github/workflows/create-release.yml

This file was deleted.

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.84.0
- uses: taiga-family/ci/actions/run/release-it@v1.84.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]
Expand Down
1 change: 1 addition & 0 deletions .release-it.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('@taiga-ui/release-it-config');
Loading
Loading