Compare commits

...
Author SHA1 Message Date
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
313 changed files with 36968 additions and 802 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:
+2 -2
View File
@@ -178,8 +178,8 @@ jobs:
token: ${{ secrets.CI_PAT_TOKEN }}
tag_name: "@standardnotes/desktop@${{ steps.package-version.outputs.current-version}}"
prerelease: true
draft: ${{ inputs.channel == 'beta' && true || false }}
name: "Desktop ${{ inputs.channel == 'beta' && 'Beta' || '' }} ${{ steps.package-version.outputs.current-version }}"
draft: false
name: "Desktop ${{ steps.package-version.outputs.current-version }}"
files: packages/desktop/dist/*
- name: Publish Snap
continue-on-error: true
+2 -4
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:
@@ -55,7 +53,7 @@ jobs:
with:
token: ${{ secrets.CI_PAT_TOKEN }}
tag_name: "@standardnotes/mobile@${{ steps.package-version.outputs.current-version}}"
prerelease: false
prerelease: true
draft: false
name: "Mobile ${{ steps.package-version.outputs.current-version }}"
files: |
@@ -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
+4 -30
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,38 +38,12 @@ 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 }}
+45
View File
@@ -0,0 +1,45 @@
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 }}
fetch-depth: 0
- 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:
title: "${{ 'chore(deps): upgrade snjs' }}"
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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