Skip to content

Commit d000f46

Browse files
committed
attempt at fixing changeset integration
1 parent 6afc9d3 commit d000f46

File tree

3 files changed

+18
-70
lines changed

3 files changed

+18
-70
lines changed

.github/workflows/bump-canary.yml

Lines changed: 0 additions & 52 deletions
This file was deleted.
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,52 @@
1-
name: Bump
1+
name: rsnd
22

33
on:
44
push:
55
branches:
66
- main
7+
- canary
78

89
concurrency: ${{ github.workflow }}-${{ github.ref }}
910

1011
jobs:
1112
release:
12-
name: Bump
13-
runs-on: ubuntu-latest
13+
name: version
14+
runs-on: buildjet-4vcpu-ubuntu-2204
15+
permissions:
16+
contents: write
17+
pull-requests: write
18+
container:
19+
image: node:22
1420
steps:
1521
- name: Checkout Repo
1622
uses: actions/checkout@v4
1723

18-
- name: Setup Node.js 22
19-
uses: actions/setup-node@v4
20-
with:
21-
node-version: 22
22-
2324
- name: Enable Corepack
2425
id: pnpm-setup
2526
run: |
2627
corepack enable
2728
corepack prepare [email protected] --activate
2829
pnpm config set script-shell "/usr/bin/bash"
29-
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
3030
3131
- name: pnpm Cache
3232
uses: buildjet/cache@v4
3333
with:
34-
path: ${{ steps.pnpm-setup.outputs.pnpm_cache_dir }}
35-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
34+
path: |
35+
~/.pnpm-store
36+
node_modules
37+
*/*/node_modules
38+
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
3639
restore-keys: |
37-
${{ runner.os }}-pnpm-store-
40+
${{ runner.os }}-pnpm-
3841
3942
- name: Install packages
43+
if: steps.pnpm-cache.outputs.cache-hit != 'true'
4044
run: pnpm install --frozen-lockfile
4145

42-
- name: Exit prerelease mode
43-
continue-on-error: true
44-
run: pnpm canary:exit
45-
4646
- name: Create Release Pull Request
4747
uses: changesets/action@v1
4848
with:
4949
version: pnpm run version
50-
title: "chore: Bump for release"
50+
title: "chore(root): Version packages"
5151
env:
5252
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"release": "turbo run build --filter=./packages/* --filter=!react-email-starter && pnpm changeset publish",
99
"canary:enter": "changeset pre enter canary",
1010
"canary:exit": "changeset pre exit",
11-
"version": "changeset version && pnpm install --no-frozen-lockfile",
11+
"version": "changeset version && pnpm install --no-frozen-lockfile && pnpm lint:fix",
1212
"lint": "biome check",
1313
"lint:fix": "biome check --write .",
1414
"test": "turbo run test",

0 commit comments

Comments
 (0)