-
Notifications
You must be signed in to change notification settings - Fork 34
53 lines (43 loc) · 1.25 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:
- main
jobs:
setup:
runs-on: ubuntu-latest
name: Setup Dependencies
steps:
- uses: actions/checkout@v4
- name: Set up Node.js ${{ matrix.node-version }}
uses: ./.github/actions/cache-restore
id: cache-node-modules
- name: Enable Corepack
run: corepack enable
- name: Install dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: yarn install --immutable
release:
name: Package Version and Release
runs-on: ubuntu-latest
needs: [setup]
steps:
- name: Checkout Repo
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
persist-credentials: false
- name: Set up Node.js
uses: ./.github/actions/cache-restore
with:
node-version: 20
- name: Enable Corepack
run: corepack enable
- name: Create Release Pull Request
uses: changesets/action@v1
with:
publish: yarn publish-ci
env:
GITHUB_TOKEN: ${{ secrets.GUC_BOT_TOKEN }}
NPM_TOKEN: ${{secrets.NPM_TOKEN}}