mirror of
https://github.com/vercel/flags.git
synced 2026-09-19 03:49:23 +08:00
2fcc446ea8
* Create LaunchDarkly adapter * Update example to include a LaunchDarkly flag * Add missing env to turbo * Rename to defaultLaunchDarklyAdapter * Add winter sale example for providers * Update winter-sale * Document usage in readme * Allow to set the default value through the adapter * Fix readme * Add default value for adapter * Make argument optional * Add @ts-expect-error * Add a LaunchDarkly adapter (#10) * add ld example * reword * remove winter-sale example * remove defaultValue * use @flags-sdk/launchdarkly * add install steps * add changeset * move @vercel/edge-config to peer deps * add more secrets * spell out name * remove unused env var * rename properties * Capitalize * Change import * Fix more imports * expose ldClient * move peerDeps to real deps * clarify Edge Config requirement in README * remove adapter-launchdarkly snippet * upgrade next@canary * polish @flags-sdk/launchdarkly README --------- Co-authored-by: Dominik Ferber <dominik.ferber@gmail.com>
49 lines
1.4 KiB
YAML
49 lines
1.4 KiB
YAML
name: Release
|
|
|
|
env:
|
|
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
|
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
jobs:
|
|
release:
|
|
name: Release
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v2
|
|
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version-file: '.node-version'
|
|
cache: 'pnpm'
|
|
|
|
- name: Install Dependencies
|
|
run: pnpm install
|
|
|
|
- name: Create Release Pull Request or Publish to npm
|
|
id: changesets
|
|
uses: changesets/action@v1
|
|
with:
|
|
# This expects you to have a script called release which does a build for your packages and calls changeset publish
|
|
publish: pnpm release
|
|
version: pnpm version-packages
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN_ELEVATED }}
|
|
EDGE_CONFIG: ${{ secrets.EDGE_CONFIG }}
|
|
FLAGS_SECRET: ${{ secrets.FLAGS_SECRET }}
|
|
HAPPYKIT_API_TOKEN: ${{ secrets.HAPPYKIT_API_TOKEN }}
|
|
HAPPYKIT_ENV_KEY: ${{ secrets.HAPPYKIT_ENV_KEY }}
|
|
LAUNCHDARKLY_CLIENT_SIDE_ID: ${{ secrets.LAUNCHDARKLY_CLIENT_SIDE_ID }}
|
|
LAUNCHDARKLY_PROJECT_SLUG: ${{ secrets.LAUNCHDARKLY_PROJECT_SLUG }}
|