Compare commits

...
Author SHA1 Message Date
StandardNotes CI a07340936f chore(release): publish
- @standardnotes/[email protected].9
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected].0
2022-06-28 12:52:17 +00:00
Aman Harwara 7b51fa4fa8 feat: move search bar to navigation panel (#1170) 2022-06-28 18:20:31 +05:30
StandardNotes CI fb0684a19c chore(release): publish
- @standardnotes/[email protected]
 - @standardnotes/[email protected].8
 - @standardnotes/[email protected].8
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected].4
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
2022-06-28 12:19:41 +00:00
StandardNotes CI 5b4fbbe956 chore(release): components 2022-06-28 12:19:25 +00:00
Mo 667af4d680 chore: per package licenses 2022-06-28 07:13:56 -05:00
StandardNotes CI 117a6dfbc7 chore(release): publish
- @standardnotes/[email protected].7
 - @standardnotes/[email protected].7
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected].3
2022-06-28 09:05:17 +00:00
standardci 6ebc3759aa chore(deps): upgrade snjs (#1171) 2022-06-28 11:03:29 +02:00
StandardNotes CI cc55888d29 chore(release): publish
- @standardnotes/[email protected].6
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected].2
2022-06-28 08:09:31 +00:00
Aman Harwara ee5b6627da style: tailwind classname sorting (#1169) 2022-06-28 13:37:38 +05:30
StandardNotes CI 15ca2d358b chore(release): publish
- @standardnotes/[email protected]
 - @standardnotes/[email protected].5
 - @standardnotes/[email protected].6
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
2022-06-28 03:06:21 +00:00
StandardNotes CI 5116895b36 chore(release): components 2022-06-28 03:06:09 +00:00
Johnny AandJohnny Almonte 59e5324a29 feat(advanced checklist): collapsible group sections (#1167)
* feat(advanced checklist): collapsible group sections

* fix: type checking

* fix: type checking for migrations

* fix: remove stale files

* fix: type checking

* fix: copy default sections when collapsing sections

* chore: format

Co-authored-by: Johnny Almonte <[email protected]>
2022-06-27 23:01:50 -04:00
StandardNotes CI 36645d7fbf chore(release): publish
- @standardnotes/[email protected]
 - @standardnotes/[email protected].4
 - @standardnotes/[email protected].5
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
2022-06-27 22:55:25 +00:00
StandardNotes CI a9995ff6cd chore(release): components 2022-06-27 22:55:09 +00:00
Mo 7d1b66a036 fix: theme path 2022-06-27 17:49:16 -05:00
StandardNotes CI 94da6b24e6 chore(release): publish
- @standardnotes/[email protected]
 - @standardnotes/[email protected].3
 - @standardnotes/[email protected].4
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected].1
 - @standardnotes/[email protected]
2022-06-27 22:48:11 +00:00
StandardNotes CI c52690a620 chore(release): components 2022-06-27 22:47:58 +00:00
Mo ded2d1866a fix: don't show deprecated editors; add missing solarized dark theme 2022-06-27 17:43:17 -05:00
StandardNotes CI 0290dcfd46 chore(release): publish
- @standardnotes/[email protected]
 - @standardnotes/[email protected].2
 - @standardnotes/[email protected].3
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
2022-06-27 22:38:00 +00:00
StandardNotes CI d90dfdb085 chore(release): components 2022-06-27 22:37:47 +00:00
Mo 207625bda8 chore: workflow trigger 2022-06-27 17:33:23 -05:00
Mo 50991d5a5f chore: deps 2022-06-27 17:28:33 -05:00
StandardNotes CI 2a34c6f2b8 chore(release): publish
- @standardnotes/[email protected]
 - @standardnotes/[email protected].1
 - @standardnotes/[email protected].2
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
2022-06-27 22:25:50 +00:00
Mo 662eb88cdd chore: workspace locations 2022-06-27 17:20:19 -05:00
StandardNotes CI 535752dac0 chore(release): publish
- @standardnotes/[email protected]
 - @standardnotes/[email protected].0
 - @standardnotes/[email protected].1
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected].0
2022-06-27 21:25:20 +00:00
StandardNotes CI fc6f9a19f8 chore(release): components 2022-06-27 21:25:07 +00:00
Aman Harwara b80038f607 feat(web): tailwind css (#1147) 2022-06-27 16:20:52 -05:00
Mo 0ead805412 chore: remove unnecessary postinstall script 2022-06-27 16:20:06 -05:00
StandardNotes CI 3e0a06790d chore(release): publish
- @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected].0
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected].0
2022-06-27 19:15:32 +00:00
StandardNotes CI 4dfad27364 chore(release): components 2022-06-27 19:15:16 +00:00
Mo 60ca415044 feat: deprecated editors (#1166) 2022-06-27 14:08:33 -05:00
Mo d340ff9d77 chore: lockfile 2022-06-26 09:00:12 -05:00
StandardNotes CI f3c1eadd62 chore(release): publish
- @standardnotes/[email protected]
 - @standardnotes/[email protected].8
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected].6
2022-06-25 16:19:45 +00:00
standardci 6b90e13dca chore(deps): upgrade snjs (#1152) 2022-06-25 11:17:45 -05:00
Mo 7b543d3c58 chore(workflow): repo sync 2022-06-24 13:21:56 -05:00
Mo 6973879cda chore: workflow 2022-06-24 12:55:24 -05:00
Mo d683281d2f chore: release notes workflow 2022-06-24 11:20:15 -05:00
Mo e59b4ba8ec chore(workflow): notify releases package only after desktop finishes uploading 2022-06-24 11:08:51 -05:00
StandardNotes CI e7e3872c06 chore(release): publish
- @standardnotes/[email protected].7
 - @standardnotes/[email protected]
2022-06-24 16:04:44 +00:00
Mo 45178f9024 chore: workflow trigger 2022-06-24 11:02:04 -05:00
Mo 2f7f7a326f chore(workflow): automated release notes 2022-06-24 10:56:47 -05:00
Mo c10c8b50d4 chore: workflow 2022-06-24 08:25:39 -05:00
Mo 4bd25efd84 chore: workflow 2022-06-24 08:16:37 -05:00
Mo 5c4a645e70 chore(temp): downgrade config package 2022-06-24 08:09:31 -05:00
StandardNotes CI b71a797681 chore(release): publish
- @standardnotes/[email protected]
 - @standardnotes/[email protected].6
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected].5
2022-06-24 13:06:21 +00:00
Mo 50136d9373 chore: workflows 2022-06-24 08:04:03 -05:00
StandardNotes CI 34f00c5946 chore(release): publish
- @standardnotes/[email protected]
 - @standardnotes/[email protected].5
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected].4
2022-06-24 13:01:27 +00:00
Mo 5855e44870 chore(workflow): names 2022-06-24 07:59:16 -05:00
Mo f0283f51f2 chore(workflow): snjs upgrades 2022-06-24 07:52:07 -05:00
StandardNotes CI a345f4f97e chore(release): publish
- @standardnotes/[email protected].4
 - @standardnotes/[email protected]
2022-06-24 12:39:51 +00:00
Mo e83452785c fix(mobile): force redownload of themes if unable to parse first time (#1150) 2022-06-24 07:37:49 -05:00
Mo 4f5323140a chore(workflow): default mobile releases to prerelease: true
electron-builder autoupdate uses github.com/standardnotes/app/releases/latest to determine if there is a new update. However it does not properly handle monorepos with multi-package releases. As a temporary measure until a better solution is found, only the desktop app should be able to have non-prerelease releases.
2022-06-24 06:28:35 -05:00
Mo 6f17902766 chore(workflow): remove desktop beta labeling 2022-06-23 20:29:05 -05:00
StandardNotes CI 67961838d2 chore(release): publish
- @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected].3
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
2022-06-24 01:26:15 +00:00
Mo acfc5b782b chore: retrigger all apps to redeploy by updating components package 2022-06-23 20:21:32 -05:00
Mo bd66b191a5 chore: workflows for removal of develop branch 2022-06-23 20:02:20 -05:00
StandardNotes CI c859876bb5 chore(release): publish main
- @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected].2
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected].3
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
2022-06-23 22:25:26 +00:00
StandardNotes CI 1d015365a9 chore(release): components 2022-06-23 22:25:12 +00:00
StandardNotes CI 4bb227bdce chore(release): publish
- @standardnotes/[email protected]
 - @standardnotes/[email protected].2
 - @standardnotes/[email protected].2-alpha.2
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
2022-06-23 22:17:16 +00:00
StandardNotes CI 23e9a5b511 chore(release): components 2022-06-23 22:17:03 +00:00
Johnny AandJohnny Almonte a3a0952e68 fix: add deprecated file-safe component (#1141)
* fix: add deprecated file-safe component

* chore: add file-safe source

* fix: file-safe build script

* chore: run package script

* fix: use root node-sass

* chore: remove zip so CI generates it

* chore: commit dist files

* chore: remove dist/assets/org.standardnotes.file-safe files

* chore: remove changelog script

Co-authored-by: Johnny Almonte <[email protected]>
2022-06-23 18:12:16 -04:00
StandardNotes CI 3cece858b1 chore(release): publish
- @standardnotes/[email protected].1
 - @standardnotes/[email protected].2-alpha.1
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected].3-alpha.1
2022-06-23 21:37:51 +00:00
Mo fedcffbdfd chore: explicit snjs version in web and mobile so they are repackaged when snjs changes 2022-06-23 16:36:07 -05:00
Mo 9cef147a10 chore: upgrade snjs (#1145) 2022-06-23 15:51:10 -05:00
StandardNotes CI e7e90eb350 chore(release): publish
- @standardnotes/[email protected]
 - @standardnotes/[email protected].0
 - @standardnotes/[email protected].2-alpha.0
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected].3-alpha.0
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
2022-06-23 20:11:32 +00:00
StandardNotes CI 24bb5e3b0c chore(release): components 2022-06-23 20:11:17 +00:00
Mo 2d069fd4bd fix(components): disable minification in themes build due to limitations in mobile css parser (#1143) 2022-06-23 15:05:12 -05:00
StandardNotes CI 06d452b57f chore(release): publish
- @standardnotes/[email protected]
2022-06-23 19:43:53 +00:00
Mo 9789fc2000 fix(releases): types (#1142) 2022-06-23 14:42:11 -05:00
StandardNotes CI cb128e5de1 chore(release): publish main
- @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected].1
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected].2
 - @standardnotes/[email protected]
2022-06-23 14:34:41 +00:00
StandardNotes CI 2401c2fcb4 chore(release): components 2022-06-23 14:34:29 +00:00
StandardNotes CI 36f92a3589 chore(release): publish
- @standardnotes/[email protected].3
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected].2-alpha.1
2022-06-23 14:17:27 +00:00
Mo 6d98cf6929 chore: workflow trigger 2022-06-23 09:15:05 -05:00
Mo 0d62472019 chore(workflow): fix dockerignore to include all workspace packages 2022-06-23 09:12:20 -05:00
StandardNotes CI 020e0f8543 chore(release): publish
- @standardnotes/[email protected].2
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected].2-alpha.0
2022-06-23 13:39:55 +00:00
Mo da336da44a chore: lockfile 2022-06-23 08:37:44 -05:00
Mo ea0e9fbb27 chore: attempt web docker fix 2022-06-23 08:34:10 -05:00
StandardNotes CI df62e28440 chore(release): publish
- @standardnotes/[email protected]
 - @standardnotes/[email protected].1
 - @standardnotes/[email protected].1-alpha.1
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
2022-06-23 13:32:29 +00:00
StandardNotes CI 46ff53b3c6 chore(release): components 2022-06-23 13:32:17 +00:00
Mo f8e6632b57 chore: components build workflow 2022-06-23 08:27:42 -05:00
StandardNotes CI b0944a29ed chore(release): publish
- @standardnotes/[email protected]
 - @standardnotes/[email protected].0
 - @standardnotes/[email protected].1-alpha.0
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
2022-06-23 13:17:54 +00:00
StandardNotes CI edaa1548d4 chore(release): components 2022-06-23 13:17:38 +00:00
Mo d807ab26d2 chore: workflow trigger 2022-06-23 08:11:17 -05:00
StandardNotes CI 4217edeb0c chore(release): publish main
- @standardnotes/[email protected]
2022-06-23 00:10:07 +00:00
StandardNotes CI 70e9deccb7 chore(release): publish
- @standardnotes/[email protected]
2022-06-23 00:06:29 +00:00
Mo 6fb133fb75 feat: release json with download urls (#1140) 2022-06-22 19:04:42 -05:00
StandardNotes CI 4a9471858b chore(release): publish main
- @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected].1
2022-06-22 21:11:46 +00:00
StandardNotes CI 018e71d9c4 chore(release): publish
- @standardnotes/[email protected].0
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected].1-alpha.0
2022-06-22 21:08:51 +00:00
Mo 4e0f102a1c chore: workflow trigger 2022-06-22 16:06:48 -05:00
StandardNotes CI 95602858a7 chore(release): publish main
- @standardnotes/[email protected]
2022-06-22 21:00:09 +00:00
StandardNotes CI 6c57788ab4 chore(release): publish
- @standardnotes/[email protected]
2022-06-22 20:56:39 +00:00
Mo f3ef8d0e20 chore: workflow 2022-06-22 15:54:09 -05:00
StandardNotes CI edcccd3332 chore(release): publish main
- @standardnotes/[email protected]
2022-06-22 20:48:11 +00:00
Mo e939085fc7 chore: workflow syntax 2022-06-22 15:44:53 -05:00
Mo 458d8dacaf chore(workflow): run publish prod workflows when merging develop to main 2022-06-22 15:38:00 -05:00
StandardNotes CI fe3c8153bd chore(release): publish
- @standardnotes/[email protected]
2022-06-22 20:25:05 +00:00
Mo c3b5620bf6 fix: add direct dependencies to releases package so its version is bumped when deps are 2022-06-22 15:22:55 -05:00
1365 changed files with 74336 additions and 14951 deletions
+6 -1
View File
@@ -3,8 +3,13 @@
.eslintcache
node_modules
dist
packages/web-server/public/assets
packages/web-server/tmp
packages/web-server/vendor/bundles
packages/desktop
packages/mobile
!packages/desktop/package.json
packages/mobile
!packages/mobile/package.json
+2 -2
View File
@@ -13,10 +13,10 @@ name: "CodeQL"
on:
push:
branches: [ develop, main ]
branches: [ main ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ develop ]
branches: [ main ]
schedule:
- cron: '21 7 * * 0'
@@ -1,16 +0,0 @@
name: Desktop Beta Release
on:
push:
tags:
- '*standardnotes/*desktop*beta*'
- '*standardnotes/*desktop*alpha*'
- '!*standardnotes/*inner-desktop*'
workflow_dispatch:
jobs:
Build:
uses: standardnotes/app/.github/workflows/desktop.release.reuse.yml@develop
secrets: inherit
with:
channel: beta
+1 -3
View File
@@ -1,11 +1,9 @@
name: Desktop Prod Release
name: Desktop Release
on:
push:
tags:
- '*standardnotes/*desktop*'
- '!*standardnotes/*desktop*beta*'
- '!*standardnotes/*desktop*alpha*'
- '!*standardnotes/*inner-desktop*'
workflow_dispatch:
+18 -2
View File
@@ -172,15 +172,31 @@ jobs:
uses: martinbeentjes/npm-get-version-action@main
with:
path: packages/desktop
- name: Generate Release Notes
id: release-notes
run: echo "::set-output name=release-notes::$(node ../../scripts/changelog-parser.js web desktop)"
shell: bash
continue-on-error: true
- name: Release
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.CI_PAT_TOKEN }}
tag_name: "@standardnotes/desktop@${{ steps.package-version.outputs.current-version}}"
name: "Desktop ${{ steps.package-version.outputs.current-version }}"
body: ${{ steps.release-notes.outputs.release-notes }}
prerelease: true
draft: ${{ inputs.channel == 'beta' && true || false }}
name: "Desktop ${{ inputs.channel == 'beta' && 'Beta' || '' }} ${{ steps.package-version.outputs.current-version }}"
draft: false
files: packages/desktop/dist/*
- name: Notify Release Update
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.CI_PAT_TOKEN }}
repository: ${{ secrets.RELEASES_EVENT_RECEIVING_REPO }}
event-type: releases-updated-event
- name: Publish Snap
continue-on-error: true
run: |
+22
View File
@@ -1,3 +1,5 @@
name: Sync Repo
on: push
jobs:
git-sync:
@@ -11,3 +13,23 @@ jobs:
destination_repo: "standardnotes/internal-app"
destination_branch: "refs/heads/*"
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
- uses: actions/checkout@v3
with:
token: ${{ secrets.CI_PAT_TOKEN }}
repository: standardnotes/internal-app
ref: ${{ github.ref }}
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.CI_PAT_TOKEN }}
branch: ${{ github.ref }}
base: main
title: ${{ steps.extract_branch.outputs.branch }}
assignees: ${{ github.actor }}
reviewers: ${{ github.actor }}
+11 -5
View File
@@ -1,11 +1,9 @@
name: Mobile Build Production
name: Mobile Release Production
on:
push:
tags:
- '*standardnotes/mobile*'
- '!*standardnotes/mobile*beta*'
- '!*standardnotes/mobile*alpha*'
workflow_dispatch:
jobs:
@@ -50,14 +48,22 @@ jobs:
uses: martinbeentjes/npm-get-version-action@main
with:
path: packages/mobile
- name: Generate Release Notes
id: release-notes
run: echo "::set-output name=release-notes::$(node ../../scripts/changelog-parser.js mobile)"
shell: bash
continue-on-error: true
- name: Release
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.CI_PAT_TOKEN }}
tag_name: "@standardnotes/mobile@${{ steps.package-version.outputs.current-version}}"
prerelease: false
draft: false
name: "Mobile ${{ steps.package-version.outputs.current-version }}"
body: ${{ steps.release-notes.outputs.release-notes }}
prerelease: true
draft: false
files: |
packages/mobile/android/app/build/outputs/bundle/prodRelease/app-prod-release.aab
packages/mobile/android/app/build/outputs/apk/prod/release/app-prod-release.apk
@@ -1,10 +1,6 @@
name: Mobile Build Development
name: Mobile TestFlight
on:
push:
tags:
- '*standardnotes/*mobile*beta*'
- '*standardnotes/*mobile*alpha*'
workflow_dispatch:
jobs:
-73
View File
@@ -1,73 +0,0 @@
name: Mobile e2e
on: [workflow_dispatch]
jobs:
android:
defaults:
run:
working-directory: ./packages/mobile
runs-on: macos-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Download Android Emulator Image
run: |
$ANDROID_HOME/tools/bin/sdkmanager --install "system-images;android-28;default;x86_64"
$ANDROID_HOME/tools/bin/avdmanager create avd -n pixel -d "Nexus 5X" --package "system-images;android-28;default;x86_64"
- name: Install Dependencies
run: yarn install
- name: Add usesCleartextTraffic to release AndroidManifest.xml
run: yarn replace-in-file '<application' '<application android:usesCleartextTraffic="true"' ./android/app/src/main/AndroidManifest.xml
- name: Build for detox
env:
DETOX_CI: true
run: yarn detox build --configuration android.emu.release
- name: Setup Emulator
timeout-minutes: 10
run: |
echo "Starting emulator"
nohup $ANDROID_HOME/emulator/emulator -avd pixel -no-audio -no-snapshot -no-window -gpu swiftshader_indirect &
$ANDROID_HOME/platform-tools/adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed | tr -d '\r') ]]; do sleep 1; done; input keyevent 82'
$ANDROID_HOME/platform-tools/adb shell settings put global window_animation_scale 0 &
$ANDROID_HOME/platform-tools/adb shell settings put global transition_animation_scale 0 &
$ANDROID_HOME/platform-tools/adb shell settings put global animator_duration_scale 0 &
echo "Emulator started"
- name: Run tests
run: yarn detox test --configuration android.emu.release
ios:
defaults:
run:
working-directory: ./packages/mobile
runs-on: macos-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Install Dependencies
run: yarn install
- name: Install Pods
run: npx pod-install ios
- name: Install detox dependencies
run: brew tap wix/brew
- name: Install simulator utils
run: brew install applesimutils
- name: Build for detox
run: yarn detox build --configuration ios.sim.release
- name: Run tests
run: yarn detox test --configuration ios.sim.release
-1
View File
@@ -3,7 +3,6 @@ name: Components PR
on:
pull_request:
branches:
- develop
- main
paths:
- packages/components/**
-1
View File
@@ -3,7 +3,6 @@ name: General PR
on:
pull_request:
branches:
- develop
- main
paths:
- '**/**'
-37
View File
@@ -1,37 +0,0 @@
name: Promote Develop To Main
on:
workflow_dispatch:
jobs:
Run:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: develop
token: ${{ secrets.CI_PAT_TOKEN }}
fetch-depth: 0
- name: Setup git config
run: |
git config --global user.name "standardci"
git config --global user.email "[email protected]"
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v4
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true
- name: Merge Develop into Main
run: |
git config pull.rebase false
git checkout main
git pull origin develop
git push origin main
+5 -38
View File
@@ -1,12 +1,12 @@
name: Version Bump
name: Version Bump Main
on:
push:
branches: [ develop, main ]
branches: [ main ]
jobs:
Build:
if: contains(github.event.head_commit.message, 'chore(release)') == false
if: "${{ contains(github.event.head_commit.message, 'chore(release): publish') == false }}"
runs-on: ubuntu-latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -38,40 +38,7 @@ jobs:
- name: Install Dependencies
run: yarn install
- name: Bump Prod Version Graduate
continue-on-error: true
id: graduateRelease
if: ${{ github.ref == 'refs/heads/main' }}
- name: Bump Prod Version
run: |
yarn release:prod:graduate
yarn publish:prod
- name: Bump Prod Version Fallback
if: ${{ always() && github.ref == 'refs/heads/main' && steps.graduateRelease.outcome == 'failure' }}
run: |
echo Falling back to non-graduate release due to https://github.com/lerna/lerna/issues/2532
git stash
yarn release:prod
yarn publish:prod
- name: Bump Beta Version
if: ${{ github.ref == 'refs/heads/develop' }}
run: |
yarn release:beta
yarn publish:beta
- name: Merge release into develop
if: ${{ github.ref == 'refs/heads/main' }}
run: |
git config pull.rebase false
git checkout develop
git pull origin main
git push origin develop
- name: Notify Release Update
if: ${{ github.ref == 'refs/heads/main' }}
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.CI_PAT_TOKEN }}
repository: ${{ secrets.RELEASES_EVENT_RECEIVING_REPO }}
event-type: releases-updated-event
yarn publish:prod
+46
View File
@@ -0,0 +1,46 @@
name: Update SNJS Packages
on:
workflow_dispatch:
repository_dispatch:
types: [snjs-updated-event]
jobs:
SNJSUpdateEvent:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: main
token: ${{ secrets.CI_PAT_TOKEN }}
- uses: actions/setup-node@v3
with:
registry-url: 'https://registry.npmjs.org'
- name: Setup git config
run: |
git config --global user.name "standardci"
git config --global user.email "[email protected]"
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v4
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true
- run: yarn install
- run: |
yarn upgrade:snjs
yarn install --no-immutable
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.CI_PAT_TOKEN }}
title: "${{ 'chore(deps): upgrade snjs' }}"
body: Updates all packages prefixed with "@standardnotes/" in root workspace, web, and mobile.
commit-message: "${{ 'chore(deps): upgrade snjs' }}"
delete-branch: true
committer: standardci <[email protected]>
author: standardci <[email protected]>
-78
View File
@@ -1,78 +0,0 @@
name: Web Server Beta
on:
push:
branches: [ beta/* ]
paths:
- packages/web-server/**
- packages/web/**
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
- name: Install dependencies
run: yarn install
- name: ESLint
run: yarn lint
- name: Build
run: yarn build:web-server
- name: Test
run: yarn test
deploy:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v2
- name: Copy robots.txt
run: cp public/robots.txt.development public/robots.txt
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: standardnotes/web
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tags: "beta,${{ github.sha }}"
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: Download task definition
run: |
aws ecs describe-task-definition --task-definition app-beta-dev --query taskDefinition > task-definition.json
- name: Fill in the new image ID in the Amazon ECS task definition
id: task-def
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: task-definition.json
container-name: app-beta-dev
image: "standardnotes/web:${{ github.sha }}"
- name: Deploy Amazon ECS task definition
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.task-def.outputs.task-definition }}
service: app-beta-dev
cluster: dev
wait-for-service-stability: true
notify_discord:
needs: deploy
runs-on: ubuntu-latest
steps:
- name: Run Discord Webhook
uses: johnnyhuy/actions-discord-git-webhook@main
with:
webhook_url: ${{ secrets.DISCORD_WEBHOOK_URL }}
+1 -1
View File
@@ -1,4 +1,4 @@
name: Web Server Prod
name: Web Server Deploy
concurrency:
group: prod_environment
@@ -1,14 +1,10 @@
name: Web Server Dev
name: Web Server TestFlight
concurrency:
group: dev_environment
cancel-in-progress: true
on:
push:
tags:
- '*standardnotes/*web-server*beta*'
- '*standardnotes/*web-server*alpha*'
workflow_dispatch:
jobs:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More