-
Notifications
You must be signed in to change notification settings - Fork 708
52 lines (43 loc) · 1.3 KB
/
bump-canary.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
name: Bump canary
on:
push:
branches:
- canary
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Bump for canary
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Node.js 22
uses: actions/setup-node@v4
with:
node-version: 22
- name: Enable Corepack
id: pnpm-setup
run: |
corepack enable
corepack prepare [email protected] --activate
pnpm config set script-shell "/usr/bin/bash"
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- name: pnpm Cache
uses: buildjet/cache@v4
with:
path: ${{ steps.pnpm-setup.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install packages
run: pnpm install --frozen-lockfile
- name: Enter prerelease mode
continue-on-error: true
run: pnpm canary:enter
- name: Create Release Pull Request
uses: changesets/action@v1
with:
version: pnpm run version
title: "chore: Bump for release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}