-
Notifications
You must be signed in to change notification settings - Fork 316
43 lines (40 loc) · 1.24 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
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@v3
# Tags are fetched for Changeset to distinguish from new ones while running `changeset tag`
- name: Git fetch tags
run: git fetch --tags origin
- name: Setup Node.js 16 # It was default for Changesets action, check if it can be bumped to v18
uses: actions/setup-node@v3
with:
node-version: 16
- uses: pnpm/action-setup@v2
name: Install pnpm
- run: pnpm install
- name: Create Release Pull Request
uses: changesets/action@v1
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: print outputs
run: "echo '${{toJSON(steps.changesets)}}}'"