Skip to content

Commit

Permalink
chore: workflows for removal of develop branch
Browse files Browse the repository at this point in the history
  • Loading branch information
moughxyz committed Jun 24, 2022
1 parent c859876 commit bd66b19
Show file tree
Hide file tree
Showing 15 changed files with 10 additions and 334 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
16 changes: 0 additions & 16 deletions .github/workflows/desktop.release.beta.yml

This file was deleted.

4 changes: 1 addition & 3 deletions .github/workflows/desktop.release.prod.yml
Original file line number Diff line number Diff line change
@@ -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:

Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/mobile.release.prod.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: Mobile Build Development
name: Mobile TestFlight

on:
push:
tags:
- '*standardnotes/*mobile*beta*'
- '*standardnotes/*mobile*alpha*'
workflow_dispatch:

jobs:
Expand Down
73 changes: 0 additions & 73 deletions .github/workflows/mobile.test.yml

This file was deleted.

1 change: 0 additions & 1 deletion .github/workflows/pr.components.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Components PR
on:
pull_request:
branches:
- develop
- main
paths:
- packages/components/**
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: General PR
on:
pull_request:
branches:
- develop
- main
paths:
- '**/**'
Expand Down
37 changes: 0 additions & 37 deletions .github/workflows/promote.develop.yml

This file was deleted.

77 changes: 0 additions & 77 deletions .github/workflows/publish.dev.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
Build:
if: "${{ contains(github.event.head_commit.message, 'chore(release): publish main') == false }}"
if: "${{ contains(github.event.head_commit.message, 'chore(release): publish') == false }}"
runs-on: ubuntu-latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit bd66b19

Please sign in to comment.