-
Notifications
You must be signed in to change notification settings - Fork 422
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into docs/realtime-self-hosted
- Loading branch information
Showing
475 changed files
with
41,678 additions
and
23,567 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# $schema: https://json.schemastore.org/dependabot-2.0.json | ||
|
||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "pip" | ||
# we only want security updates from dependabot, so we set the limit to 0 | ||
# for regular updates. See documentation for further information here: | ||
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/dependabot-options-reference#open-pull-requests-limit- | ||
open-pull-requests-limit: 0 | ||
directory: "/api" | ||
schedule: | ||
interval: "daily" | ||
reviewers: | ||
- "flagsmith/flagsmith-back-end" | ||
commit-message: | ||
prefix: "deps" | ||
labels: | ||
- "api" | ||
- "dependencies" | ||
|
||
- package-ecosystem: "npm" | ||
open-pull-requests-limit: 0 # only security updates | ||
directory: "/frontend" | ||
schedule: | ||
interval: "daily" | ||
reviewers: | ||
- "flagsmith/flagsmith-front-end" | ||
commit-message: | ||
prefix: "deps" | ||
labels: | ||
- "front-end" | ||
- "dependencies" | ||
|
||
- package-ecosystem: "npm" | ||
open-pull-requests-limit: 0 # only security updates | ||
directory: "/docs" | ||
schedule: | ||
interval: "daily" | ||
reviewers: | ||
- "flagsmith/flagsmith-docs" | ||
commit-message: | ||
prefix: "deps" | ||
labels: | ||
- "docs" | ||
- "dependencies" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# reusable workflow | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
gh_environment: | ||
type: string | ||
description: Github environment to use for secret / variable access | ||
required: true | ||
npm_build_environment: | ||
type: string | ||
description: The environment set as the ENV environment variable when running npm run env | ||
required: true | ||
|
||
defaults: | ||
run: | ||
working-directory: frontend | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
environment: ${{ inputs.gh_environment }} | ||
|
||
permissions: | ||
contents: read | ||
|
||
steps: | ||
- name: Cloning repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js 16.x | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 16.x | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.npm | ||
key: npm-${{ hashFiles('package-lock.json') }} | ||
restore-keys: npm- | ||
|
||
- name: Deploy to Vercel | ||
env: | ||
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | ||
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | ||
ENV: ${{ inputs.npm_build_environment }} | ||
run: | | ||
npm ci --only=prod | ||
npm run env | ||
npm run bundle | ||
echo ${{ github.sha }} > CI_COMMIT_SHA | ||
npm install --global [email protected] | ||
vercel --prod --token ${{ secrets.VERCEL_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Docs - update SDK versions | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
# At 12:00 on Tuesday https://crontab.guru/#0_12_*_*_2 | ||
- cron: '0 12 * * 2' | ||
jobs: | ||
vercel-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Run Vercel deploy hook | ||
run: curl -X POST "${{ secrets.VERCEL_SDK_VERSIONS_DEPLOY_HOOKS_URL }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,10 +8,6 @@ on: | |
- frontend/** | ||
- .github/** | ||
|
||
defaults: | ||
run: | ||
working-directory: frontend | ||
|
||
jobs: | ||
run-tests: | ||
runs-on: ubuntu-latest | ||
|
@@ -33,70 +29,19 @@ jobs: | |
environment: prod | ||
|
||
deploy-production: | ||
runs-on: ubuntu-latest | ||
name: Deploy to Vercel Production | ||
environment: production | ||
needs: run-tests | ||
|
||
steps: | ||
- name: Cloning repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js 16.x | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 16.x | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.npm | ||
key: npm-${{ hashFiles('package-lock.json') }} | ||
restore-keys: npm- | ||
|
||
- name: Deploy to Vercel | ||
env: | ||
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | ||
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | ||
ENV: prod | ||
run: | | ||
npm ci --only=prod | ||
npm run env | ||
npm run bundle | ||
echo ${{ github.sha }} > CI_COMMIT_SHA | ||
vercel --prod --token ${{ secrets.VERCEL_TOKEN }} | ||
uses: ./.github/workflows/.reusable-frontend-deploy.yml | ||
with: | ||
gh_environment: production | ||
npm_build_environment: prod | ||
secrets: inherit | ||
|
||
deploy-demo: | ||
runs-on: ubuntu-latest | ||
name: Deploy to Vercel Demo | ||
environment: demo | ||
needs: run-tests | ||
|
||
steps: | ||
- name: Cloning repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js 16.x | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 16.x | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.npm | ||
key: npm-${{ hashFiles('package-lock.json') }} | ||
restore-keys: npm- | ||
|
||
- name: Deploy to Vercel | ||
env: | ||
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | ||
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | ||
ENV: prod | ||
run: | | ||
npm ci --only=prod | ||
npm run env | ||
npm run bundle | ||
echo ${{ github.sha }} > CI_COMMIT_SHA | ||
npm install --global [email protected] | ||
vercel --prod --token ${{ secrets.VERCEL_TOKEN }} | ||
uses: ./.github/workflows/.reusable-frontend-deploy.yml | ||
with: | ||
gh_environment: demo | ||
npm_build_environment: prod | ||
secrets: inherit |
Oops, something went wrong.