-
Notifications
You must be signed in to change notification settings - Fork 321
57 lines (53 loc) · 2.08 KB
/
prepare-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
54
55
56
57
name: Open release
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
#
# TODO
# - Print versions name to commit, for easier Vercel deployments
#
jobs:
release:
name: Prepare release with Changesets
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
# Tags are fetched for Changeset to distinguish from new ones while running `changeset tag`
- name: Git fetch tags
run: git fetch --tags origin
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
with:
run_install: |
- args: [--frozen-lockfile]
- name: Create Release Pull Request
uses: changesets/action@e2f8e964d080ae97c874b19e27b12e0a8620fb6c # v1.4.6
id: changesets
with:
title: 🚀 Release apps
commit: Release apps
publish: pnpm github:release
createGithubReleases: true
env:
# Use private access token so Github can trigger another workflow from this one
GITHUB_TOKEN: ${{ secrets.PAT }}
- name: Find previous comment with checklist on release PR
if: steps.changesets.outputs.hasChangesets == 'true'
uses: peter-evans/find-comment@d5fe37641ad8451bdd80312415672ba26c86575e # v3.0.0
id: find-comment
with:
issue-number: ${{ steps.changesets.outputs.pullRequestNumber }}
body-includes: Releasing AvaTax app checklist
- name: Add release checklist comment to release PR
if: steps.changesets.outputs.hasChangesets == 'true'
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
with:
issue-number: ${{ steps.changesets.outputs.pullRequestNumber }}
comment-id: ${{ steps.find-comment.outputs.comment-id }}
edit-mode: replace
body: |
🚀 [Releasing AvaTax app checklist](https://www.notion.so/saleor/Releasing-AvaTax-app-checklist-5bf7928b942042e09e4197b70903c570)