Skip to content

Commit 852fab0

Browse files
authored
fix(ci): immediate issues with new release setup (#2859)
1 parent ad36f6e commit 852fab0

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

.github/workflows/bump.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Install packages
2424
run: pnpm install --frozen-lockfile --prefer-offline
2525
- name: Create "version packages" pull request
26-
uses: changesets/action@04d574e831923498156e0b2b93152878063203a3
26+
uses: changesets/action@e0145edc7d9d8679003495b11f87bd8ef63c0cba
2727
with:
2828
version: pnpm run version
2929
title: "chore(root): version packages"

.github/workflows/release-canary.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ jobs:
2323
- name: Install packages
2424
run: pnpm install --frozen-lockfile --prefer-offline
2525
- name: Publish canary release
26-
run: tsx ./scripts/release-only-canary.ts
26+
run: pnpm tsx ./scripts/release-only-canary.ts
2727
env:
2828
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

scripts/release-only-canary.ts

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
import { readPreState } from '@changesets/pre';
22
import { runScript } from 'nypm';
33

4-
const preState = await readPreState(process.cwd());
5-
if (preState?.mode === 'pre') {
6-
console.log('Is in prerelease mode, making automated release');
7-
await runScript('release');
8-
} else {
9-
console.log(
10-
'Was not in prerelease, skipping automated release. To release this you should rebase onto main',
11-
);
12-
}
4+
(async () => {
5+
const preState = await readPreState(process.cwd());
6+
if (preState?.mode === 'pre') {
7+
console.log('Is in prerelease mode, making automated release');
8+
await runScript('release');
9+
} else {
10+
console.log(
11+
'Was not in prerelease, skipping automated release. To release this you should rebase onto main',
12+
);
13+
}
14+
})();

scripts/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"compilerOptions": {
44
"lib": ["ESNext"],
55
"types": ["node"],
6-
"target": "ESNext",
76
"module": "esnext",
87
"moduleResolution": "nodenext"
98
},

0 commit comments

Comments
 (0)