Skip to content

Commit

Permalink
ci: add new release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Sep 22, 2024
1 parent 53a005f commit 6d95f4b
Show file tree
Hide file tree
Showing 20 changed files with 7,252 additions and 6,580 deletions.
101 changes: 0 additions & 101 deletions .github/workflows/create-release.yml

This file was deleted.

39 changes: 20 additions & 19 deletions .github/workflows/npm-publish.yml → .github/workflows/release.yml
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]
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

0 comments on commit 6d95f4b

Please sign in to comment.