Skip to content

Commit a485d5a

Browse files
committed
fix: move to changesets
1 parent 2fef66e commit a485d5a

9 files changed

Lines changed: 43 additions & 1284 deletions

File tree

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.1.2/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "restricted",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.github/workflows/release.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,21 @@ jobs:
1414

1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v6
1818
with:
1919
fetch-depth: 0
2020
token: ${{ secrets.GITHUB_TOKEN }}
2121

2222
- name: Setup Bun
23-
uses: oven-sh/setup-bun@v1
23+
uses: oven-sh/setup-bun@v2
2424
with:
2525
bun-version: latest
2626

27+
- name: Setup npmrc
28+
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
29+
2730
- name: Install dependencies
28-
run: bun install
31+
run: bun install --frozen-lockfile
2932

3033
- name: Build packages
3134
run: bun run build
@@ -35,9 +38,12 @@ jobs:
3538
git config --global user.name "github-actions[bot]"
3639
git config --global user.email "github-actions[bot]@users.noreply.github.com"
3740
38-
- name: Release
39-
run: bun run release
41+
- name: Create and publish versions
42+
uses: changesets/action@v1
43+
with:
44+
commit: "chore: update versions [skip ci]"
45+
title: "chore: update versions [skip ci]"
46+
version: bun run ci:version
47+
publish: bun run ci:publish
4048
env:
41-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4249
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

bun.lock

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

index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

lerna.json

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

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
"type": "module",
66
"scripts": {
77
"build": "bun run --filter \"@opencode-plugins/*\" build",
8-
"release": "lerna publish --no-commit-hooks --conventional-commits --create-release github --yes"
8+
"ci:version": "changeset version && bun update",
9+
"ci:publish": "for dir in plugins/*; do (cd \"$dir\" && bun publish || true); done && changeset tag"
910
},
1011
"workspaces": [
1112
"plugins/*"
1213
],
1314
"devDependencies": {
14-
"@types/bun": "latest",
15-
"lerna": "^9.0.3"
15+
"@types/bun": "latest"
1616
},
1717
"peerDependencies": {
1818
"typescript": "^5"

plugins/caffeinate/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"author": "Jan Biasi (https://github.com/janbiasi)",
66
"description": "Prevent your system from sleeping during agentic workflows.",
77
"publishConfig": {
8-
"access": "public"
8+
"access": "public",
9+
"registry": "https://registry.npmjs.org/"
910
},
1011
"files": [
1112
"dist"

plugins/env-protection/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"author": "Jan Biasi (https://github.com/janbiasi)",
66
"description": "Prevent opencode to read any .env file",
77
"publishConfig": {
8-
"access": "public"
8+
"access": "public",
9+
"registry": "https://registry.npmjs.org/"
910
},
1011
"files": [
1112
"dist"

0 commit comments

Comments
 (0)