-
-
Notifications
You must be signed in to change notification settings - Fork 18
43 lines (36 loc) · 1.12 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
name: Release
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
env:
FORCE_COLOR: 3
OPENAI_API_KEY: "sk-xyz"
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.CHANGESET_GITHUB_TOKEN }}
- uses: ./.github/shared
- name: Create Release Pull Request
id: changeset
uses: changesets/action@v1
with:
commit: "chore(release): 📦 version packages"
title: "chore(release): 📦 version packages"
publish: pnpm run publish
env:
GITHUB_TOKEN: ${{ secrets.CHANGESET_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# Changeset has some issues with pnpm so we sync it up manually
- name: Sync lockfile if necessary
if: steps.changeset.outputs.hasChangesets == 'true'
run: |
git checkout changeset-release/main
pnpm install --no-frozen-lockfile
git add .
git commit -m "chore(release): 📦 sync lockfile"
git push origin changeset-release/main