-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (33 loc) · 903 Bytes
/
release.yml
File metadata and controls
34 lines (33 loc) · 903 Bytes
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
34
name: release
on:
workflow_run:
workflows: ['test']
branches: [main]
types: [completed]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
stage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: ./.github/actions/setup-deps
- run: npx turbo run release --filter="[HEAD^1]"
version:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-deps
- run: pnpm build
- uses: changesets/action@v1
with:
publish: pnpm release
commit: '🔖 Publish packages'
title: '🔖 Publish packages'
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
NPM_TOKEN: ${{secrets.NPM_TOKEN}}