-
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (44 loc) · 1.56 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
46
47
48
49
50
51
52
53
name: Release
on:
push:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.MACHINE_USER }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
jobs:
release:
name: 🚚 Release
runs-on: ubuntu-latest
steps:
- name: 🕶️ Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 📦 Install
uses: ./.github/common/install
- name: 🔨 Build
run: pnpm run build:packages
- name: 🤝 Create Release Pull Request or Publish to NPM
id: changesets
uses: changesets/action@v1
with:
createGithubReleases: true
version: pnpm run version
publish: pnpm run release
setupGitUser: false
commit: |
Changeset: Increment package & dependecy versions.
Congratulations on the new release! 🎉
This is an automated commit triggered by the `release` workflow.
title: 🚀 Release packages
- name: 🫨 Create Unstable Release
if: steps.changesets.outputs.published != 'true'
run: |
git checkout master
pnpm run version:unstable
pnpm run release:unstable