chore(demo): update versions.json #826
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
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 |