Skip to content

chore(demo): update versions.json #826

chore(demo): update versions.json

chore(demo): update versions.json #826

Workflow file for this run

name: Release
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup
uses: swisspost/design-system/.github/actions/setup-pnpm@main
# Install changesets locally
- name: Install dependencies
run: pnpm install
# Build custom changelog formatter
- name: Build changelog formatter
run: pnpm --filter design-system-changelog-github build
# The changeset action will behave differently based on whether there are
# new changesets on the main branch:
#
# - new changesets: create a preview PR with the new version bumps and changelogs
# - no new changesets (the preview PR got merged into main): publish packages
- name: Changeset magic
id: changesets
uses: changesets/action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
with:
title: 'chore(changesets): 🦋📦 publish packages'
commit: 'chore(changesets): publish packages'
publish: pnpm changeset:publish
version: pnpm changeset:version