-
Notifications
You must be signed in to change notification settings - Fork 9
33 lines (29 loc) · 1004 Bytes
/
changesets.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Changesets
on:
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
changesets:
name: Changesets 🦋
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0
# This (plus the GITHUB_TOKEN on the changeset action) allow other workflows to run on the PR that changesets creates.
token: ${{ secrets.RELEASES_GITHUB_TOKEN }}
- uses: ./.github/workflows/actions/prepare
# @see https://github.com/changesets/action
- uses: changesets/action@v1
with:
title: 'Publish packages 🚀'
commit: 'Publish packages'
version: pnpm version-bump
publish: pnpm changeset tag
env:
GITHUB_TOKEN: ${{ secrets.RELEASES_GITHUB_TOKEN }}