Skip to content

Commit 532d0eb

Browse files
Publish fix
1 parent 34a77b0 commit 532d0eb

File tree

4 files changed

+91
-9
lines changed

4 files changed

+91
-9
lines changed

.changeset/config.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
{
22
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3-
"changelog": "@changesets/cli/changelog",
3+
"changelog": [
4+
"@changesets/changelog-github",
5+
{ "repo": "bring-shrubbery/squircle-js" }
6+
],
47
"commit": true,
58
"fixed": [],
69
"linked": [],
710
"access": "public",
811
"baseBranch": "main",
912
"skipCI": false,
1013
"updateInternalDependencies": "patch",
11-
"ignore": ["web", "@squircle-js/tailwind-config"]
14+
"privatePackages": {
15+
"version": false
16+
},
17+
"ignore": ["web", "@squircle-js/tailwind-config"],
18+
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
19+
"onlyUpdatePeerDependentsWhenOutOfRange": true
20+
}
1221
}

.github/workflows/release.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: Publish
2+
23
on:
3-
workflow_run:
4-
workflows: ["CI"]
5-
types:
6-
- completed
74
push:
85
branches:
96
- "main"
@@ -12,10 +9,15 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}
129

1310
jobs:
1411
publish:
15-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1612
runs-on: ubuntu-latest
1713
steps:
1814
- uses: actions/checkout@v3
15+
with:
16+
persist-credentials: true # needed for git push
17+
- uses: actions/setup-node@v3
18+
with:
19+
node-version: 20
20+
cache: "pnpm"
1921
- uses: pnpm/action-setup@v2
2022
with:
2123
version: 9
@@ -26,6 +28,7 @@ jobs:
2628
- run: pnpm install
2729
- run: pnpm add -g @changesets/cli
2830
- run: pnpm build
31+
- run: pnpm lint
2932

3033
- name: Create .npmrc
3134
run: |
@@ -44,7 +47,9 @@ jobs:
4447
with:
4548
commit: "chore: update versions"
4649
title: "chore: update versions"
47-
publish: pnpm release
50+
version: pnpm run changeset:version
51+
publish: pnpm run changeset:release
52+
createGithubReleases: false
4853
env:
4954
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5055
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@
1919
"postinstall": "pnpm lint:ws",
2020
"typecheck": "turbo run typecheck",
2121
"ui-add": "turbo run ui-add",
22-
"release": "changeset version && changeset publish",
22+
"changeset:version": "changeset version",
23+
"changeset:release": "pnpm build && changeset publish",
2324
"knip": "knip"
2425
},
2526
"devDependencies": {
27+
"@changesets/changelog-github": "^0.5.1",
2628
"@changesets/cli": "^2.28.1",
2729
"@squircle-js/prettier-config": "workspace:*",
2830
"@turbo/gen": "^2.4.4",

pnpm-lock.yaml

Lines changed: 66 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)