Skip to content

Commit 7ff7d3e

Browse files
committed
chore: remove outdated changeset file and GitHub workflow for publishing primitives; update release command in package.json
1 parent e47eed9 commit 7ff7d3e

File tree

4 files changed

+36
-47
lines changed

4 files changed

+36
-47
lines changed

.changeset/afraid-facts-doubt.md

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

.github/workflows/publish-primitives.yml

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

.github/workflows/release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Release (Changesets)
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
with: { fetch-depth: 0 }
13+
14+
- uses: pnpm/action-setup@v4
15+
with: { version: 10 }
16+
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: 20
20+
registry-url: https://registry.npmjs.org/
21+
22+
- run: pnpm install --frozen-lockfile
23+
24+
# 1) If there are un-“versioned” changesets, open/update a PR
25+
# 2) If the PR has already been merged (so versions bumped), publish to npm
26+
# 3) Create a GitHub Release (notes from the changelogs)
27+
- name: Version or Publish
28+
uses: changesets/action@v1
29+
with:
30+
version: pnpm changeset version
31+
publish: pnpm -w changeset publish
32+
createGithubReleases: true
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"dev": "pnpm -r --parallel --filter ./apps/* run dev",
1111
"build": "pnpm -r --filter ./packages/* run build",
1212
"lint": "pnpm -r lint || true",
13-
"release": "pnpm -w changeset publish",
13+
"release": "pnpm changeset",
1414
"test": "pnpm -r --filter @native-ui-org/primitives run test"
1515
},
1616
"devDependencies": {

0 commit comments

Comments
 (0)