-
Notifications
You must be signed in to change notification settings - Fork 26
45 lines (38 loc) · 1.23 KB
/
release.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
34
35
36
37
38
39
40
41
42
43
44
45
name: 📦️ Release
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
env:
BAL_PUBLISH_DS: false
jobs:
Release:
name: 📦️ Release
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.PRE_RELEASE_GITHUB_TOKEN }}
- uses: ./.github/workflows/actions/setup
- name: Clean install
run: npm ci
- name: Create Pre-Release Pull Request
id: changesets
uses: changesets/action@v1
with:
title: '📦️ Release'
commit: 'prepare release'
createGithubReleases: false
publish: echo "Publish"
env:
GITHUB_TOKEN: ${{ secrets.PRE_RELEASE_GITHUB_TOKEN }}
- name: Echo Changeset output
shell: bash
run: |
echo "Changeset published - ${{ steps.changesets.outputs.published }}"
echo "Changeset publishedPackages - ${{ steps.changesets.outputs.publishedPackages }}"
echo "Changeset hasChangesets - ${{ steps.changesets.outputs.hasChangesets }}"
echo "Changeset pullRequestNumber - ${{ steps.changesets.outputs.pullRequestNumber }}"