Skip to content

Commit 14f9a91

Browse files
committed
more changeset stuff
1 parent e97ccf4 commit 14f9a91

File tree

7 files changed

+18
-49
lines changed

7 files changed

+18
-49
lines changed

.changeset/slow-kings-rest.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"mono-one": patch
3+
"mono-two": patch
4+
---
5+
6+
chore: initial release

.github/workflows/release.yml

Lines changed: 6 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -25,35 +25,11 @@ jobs:
2525
- name: Create Release Pull Request
2626
id: changesets
2727
uses: changesets/action@v1
28-
env:
29-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30-
31-
- name: Check if @example/mono-one was published
32-
id: mono_one_published
33-
run: |
34-
echo '${{ steps.changesets.outputs.publishedPackages }}' | \
35-
jq -e '.[] | select(.name == "mono-one")' > /dev/null && \
36-
echo "was_published=true" >> $GITHUB_OUTPUT || \
37-
echo "was_published=false" >> $GITHUB_OUTPUT
38-
shell: bash
39-
40-
- name: Check if @example/mono-two was published
41-
id: mono_two_published
42-
run: |
43-
echo '${{ steps.changesets.outputs.publishedPackages }}' | \
44-
jq -e '.[] | select(.name == "mono-two")' > /dev/null && \
45-
echo "was_published=true" >> $GITHUB_OUTPUT || \
46-
echo "was_published=false" >> $GITHUB_OUTPUT
47-
shell: bash
48-
49-
- name: Publish mono-one
50-
if: steps.mono_one_published.outputs.was_published == 'true'
51-
run: pnpm release:mono-one
28+
with:
29+
commit: 'chore(release): version package'
30+
title: 'chore(release): version package'
31+
publish: 'pnpm release:registries'
5232
env:
5333
JSREPO_TOKEN: ${{ secrets.JSREPO_TOKEN }}
54-
55-
- name: Publish mono-two
56-
if: steps.mono_two_published.outputs.was_published == 'true'
57-
run: pnpm release:mono-two
58-
env:
59-
JSREPO_TOKEN: ${{ secrets.JSREPO_TOKEN }}
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
NODE_ENV: production

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"release:mono-one": "pnpm -F mono-one release:registry",
1212
"build:mono-two": "pnpm jsrepo build --no-output --preview --cwd ./registries/mono-two",
1313
"release:mono-two": "pnpm -F mono-two release:registry",
14-
"build:registries": "pnpm build:mono-one && pnpm build:mono-two"
14+
"build:registries": "pnpm build:mono-one && pnpm build:mono-two",
15+
"release:registries": "pnpm concurrently \"pnpm release:mono-two\" \"pnpm release:mono-one\" && pnpm changeset tag"
1516
},
1617
"keywords": [],
1718
"author": "",

registries/mono-one/CHANGELOG.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

registries/mono-one/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "mono-one",
3-
"version": "0.0.1",
3+
"version": "0.0.0",
44
"description": "",
55
"main": "index.js",
66
"scripts": {
7-
"release:registry": "jsrepo publish && changeset tag"
7+
"release:registry": "jsrepo publish"
88
},
99
"keywords": [],
1010
"author": "",

registries/mono-two/CHANGELOG.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

registries/mono-two/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "mono-two",
3-
"version": "0.0.1",
3+
"version": "0.0.0",
44
"description": "",
55
"main": "index.js",
66
"scripts": {
7-
"release:registry": "jsrepo publish && changeset tag"
7+
"release:registry": "jsrepo publish"
88
},
99
"keywords": [],
1010
"author": "",

0 commit comments

Comments
 (0)