Skip to content

Commit 31cad9d

Browse files
authored
Merge pull request #39 from flippercloud/automate-publishing
Add CHANGELOGs for Flipper packages and set up automated publishing
2 parents 24ae0ed + 4c3298f commit 31cad9d

File tree

10 files changed

+259
-15
lines changed

10 files changed

+259
-15
lines changed

.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/[email protected]/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.changeset/thin-mangos-look.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@flippercloud/flipper': patch
3+
'@flippercloud/flipper-cache': patch
4+
'@flippercloud/flipper-redis': patch
5+
---
6+
7+
Update README.md for each package to standardize on same structure and style as @flippercloud/flipper-sequelize README.md

.github/workflows/release.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
jobs:
11+
release:
12+
name: Release
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout Repo
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Bun
19+
uses: oven-sh/setup-bun@v1
20+
with:
21+
bun-version: latest
22+
23+
- name: Install Dependencies
24+
run: bun install --frozen-lockfile
25+
26+
- name: Build packages
27+
run: bun run build
28+
29+
- name: Create Release Pull Request or Publish to npm
30+
id: changesets
31+
uses: changesets/action@v1
32+
with:
33+
publish: bun run release
34+
title: "chore: version packages"
35+
commit: "chore: version packages"
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

bun.lock

Lines changed: 145 additions & 14 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,13 @@
1717
"type-check": "bun --workspaces run type-check",
1818
"format": "prettier --write \"packages/**/src/**/*.{ts,tsx,json,md}\"",
1919
"format:check": "prettier --check \"packages/**/src/**/*.{ts,tsx,json,md}\"",
20-
"clean": "bun --workspaces run clean"
20+
"clean": "bun --workspaces run clean",
21+
"changeset": "changeset",
22+
"version": "changeset version",
23+
"release": "bun run build && changeset publish"
2124
},
2225
"devDependencies": {
26+
"@changesets/cli": "^2.29.8",
2327
"@eslint/js": "^9.15.0",
2428
"@types/jest": "^30.0.0",
2529
"@types/node": "^24.10.0",
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# @flippercloud/flipper-cache
2+
3+
## 0.0.1
4+
5+
Initial pre-release of generic cache wrapper for Flipper TypeScript adapters.
6+
7+
### Features
8+
9+
- Read-through cache support
10+
- Write-through cache support
11+
- Configurable TTL and cache layers
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# @flippercloud/flipper-redis
2+
3+
## 0.0.1
4+
5+
Initial pre-release of Redis adapter for Flipper feature flags.
6+
7+
### Features
8+
9+
- Redis adapter for feature flag storage
10+
- Support for ioredis client
11+
- TTL management
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# @flippercloud/flipper-sequelize
2+
3+
## 1.0.0
4+
5+
Initial release of Sequelize adapter for Flipper feature flags.
6+
7+
### Features
8+
9+
- Sequelize adapter for relational databases
10+
- Support for SQLite, PostgreSQL, MySQL, and other Sequelize-supported databases
11+
- Full feature flag management through database

packages/flipper/CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# @flippercloud/flipper
2+
3+
## 1.0.0
4+
5+
Initial release of Flipper feature flags for TypeScript/JavaScript.
6+
7+
### Features
8+
9+
- Feature flag evaluation engine
10+
- Support for actors, groups, percentages, and expressions
11+
- Memory adapter for development
12+
- TypeScript support with full type safety

0 commit comments

Comments
 (0)