Skip to content

Commit 298da8f

Browse files
committed
feat: Add publish:continuous script to package.json for streamlined publishing of @react-aria-nutrient packages
1 parent 6f9ccfc commit 298da8f

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish Any Commit
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
8+
steps:
9+
- name: Checkout code
10+
uses: actions/checkout@v4
11+
12+
- run: corepack enable
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: 20
16+
cache: "yarn"
17+
18+
- name: Install dependencies
19+
run: yarn install
20+
21+
- name: Build
22+
run: yarn build
23+
24+
- run: yarn publish:continuous

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"version:nightly": "yarn workspaces foreach --all --no-private -t version -d 3.0.0-nightly-$(git rev-parse --short HEAD)-$(date +'%y%m%d') && yarn apply-nightly --all",
5050
"publish:nightly": "yarn workspaces foreach --all --no-private -t npm publish --tag nightly --access public",
5151
"build:api-published": "node scripts/buildPublishedAPI.js",
52+
"publish:continuous": "yarn workspaces foreach --all --no-private --include '@react-aria-nutrient/*' -t npx pkg-pr-new publish",
5253
"build:api-branch": "node scripts/buildBranchAPI.js",
5354
"compare:apis": "node scripts/compareAPIs.js",
5455
"check-apis": "yarn build:api-branch --githash=\"origin/main\" --output=\"base-api\" && yarn build:api-branch && yarn compare:apis",

0 commit comments

Comments
 (0)