chore: release after tag push

This commit is contained in:
Mo
2022-06-14 10:50:08 -05:00
parent 998476196a
commit 4bd61adc5b
15 changed files with 59 additions and 72 deletions

View File

@@ -2,15 +2,12 @@ name: Components Publish
on:
push:
branches: [ develop, main ]
paths:
- packages/components/**
tags:
- '@standardnotes/components@*'
workflow_dispatch:
jobs:
publish:
if: contains(github.event.head_commit.message, 'chore(release)') == false
runs-on: ubuntu-latest
defaults:
run:

View File

@@ -2,9 +2,8 @@ name: Desktop Beta Release
on:
push:
branches: [ develop ]
paths:
- packages/desktop/**
tags:
- '@standardnotes/desktop@*'
workflow_dispatch:
jobs:

View File

@@ -2,9 +2,8 @@ name: Desktop Prod Release
on:
push:
branches: [ main ]
paths:
- packages/desktop/**
tags:
- '@standardnotes/desktop@*'
workflow_dispatch:
jobs:

View File

@@ -2,15 +2,12 @@ name: Mobile Build Development
on:
push:
branches:
- develop
paths:
- packages/mobile/**
tags:
- '@standardnotes/mobile@*'
workflow_dispatch:
jobs:
android:
if: contains(github.event.head_commit.message, 'chore(release)') == false
defaults:
run:
working-directory: packages/mobile
@@ -50,7 +47,6 @@ jobs:
name: dev.apk
path: android/app/build/outputs/apk/dev/release/app-dev-release.apk
ios:
if: contains(github.event.head_commit.message, 'chore(release)') == false
defaults:
run:
working-directory: packages/mobile

View File

@@ -1,10 +1,13 @@
name: Mobile Build Production
on: [workflow_dispatch]
on:
push:
tags:
- '@standardnotes/mobile@*'
workflow_dispatch:
jobs:
android:
if: contains(github.event.head_commit.message, 'chore(release)') == false
defaults:
run:
working-directory: packages/mobile
@@ -49,7 +52,6 @@ jobs:
name: release.aab
path: android/app/build/outputs/bundle/prodRelease/app-prod-release.aab
ios:
if: contains(github.event.head_commit.message, 'chore(release)') == false
defaults:
run:
working-directory: packages/mobile

26
.github/workflows/version-bump.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
name: Version Bump
on:
push:
branches: [ develop, main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- 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
- name: Test
run: yarn test
- name: Bump Version
run: yarn release

View File

@@ -10,7 +10,6 @@ on:
jobs:
test:
if: contains(github.event.head_commit.message, 'chore(release)') == false
runs-on: ubuntu-latest
steps:
- name: Checkout code
@@ -27,7 +26,6 @@ jobs:
run: yarn test
deploy:
if: contains(github.event.head_commit.message, 'chore(release)') == false
runs-on: ubuntu-latest
needs: test

View File

@@ -6,15 +6,13 @@ concurrency:
on:
push:
branches: [ develop ]
paths:
- packages/web-server/**
- packages/web/**
tags:
- '@standardnotes/web@*'
- '@standardnotes/web-server@*'
workflow_dispatch:
jobs:
test:
if: contains(github.event.head_commit.message, 'chore(release)') == false
runs-on: ubuntu-latest
steps:
- name: Checkout code
@@ -32,8 +30,6 @@ jobs:
deploy:
if: contains(github.event.head_commit.message, 'chore(release)') == false
runs-on: ubuntu-latest
needs: test
@@ -80,7 +76,6 @@ jobs:
wait-for-service-stability: true
notify_discord:
if: contains(github.event.head_commit.message, 'chore(release)') == false
needs: deploy
runs-on: ubuntu-latest

View File

@@ -6,14 +6,12 @@ concurrency:
on:
push:
branches: [ main ]
paths:
- packages/web-server/**
- packages/web/**
tags:
- '@standardnotes/web@*'
- '@standardnotes/web-server@*'
jobs:
test:
if: contains(github.event.head_commit.message, 'chore(release)') == false
runs-on: ubuntu-latest
steps:
- name: Checkout code
@@ -30,7 +28,6 @@ jobs:
run: yarn test
deploy:
if: contains(github.event.head_commit.message, 'chore(release)') == false
runs-on: ubuntu-latest
needs: test
@@ -77,7 +74,6 @@ jobs:
wait-for-service-stability: true
notify_discord:
if: contains(github.event.head_commit.message, 'chore(release)') == false
needs: deploy
runs-on: ubuntu-latest

View File

@@ -1,5 +0,0 @@
{
"packages/mobile": "3.22.0",
"packages/desktop": "3.22.1",
"packages/web": "3.22.1"
}

View File

@@ -22,8 +22,7 @@
"start:server:web:localhost": "lerna run start:no-binding --scope=@standardnotes/web-server",
"prepare": "husky install",
"reset": "find . -type dir -name node_modules | xargs rm -rf && rm -rf yarn.lock",
"release": "yarn workspaces foreach run release",
"version-bump": "lerna version --conventional-commits --yes -m \"chore(release): publish\""
"release": "lerna version --conventional-commits --yes -m \"chore(release): publish\""
},
"resolutions": {
"@types/styled-components/@types/react": "17.0.2",

View File

@@ -1,5 +1,5 @@
{
"name": "@standardnotes/components-meta",
"name": "@standardnotes/components",
"version": "0.2.0",
"private": true,
"workspaces": {
@@ -9,8 +9,7 @@
},
"scripts": {
"build": "echo BUILDING COMPONENTS && yarn workspaces foreach --parallel run build",
"lint": "yarn workspaces foreach --parallel run lint",
"version": "node scripts/package-components.mjs && git add dist && git commit -m 'chore(release): components'"
"lint": "yarn workspaces foreach --parallel run lint"
},
"devDependencies": {
"@standardnotes/deterministic-zip": "^1.2.0",

View File

@@ -16,7 +16,7 @@
"build:server:all": "yarn workspaces foreach -ptR run build"
},
"dependencies": {
"@standardnotes/components-meta": "workspace:*",
"@standardnotes/components": "workspace:*",
"@standardnotes/web": "workspace:*"
}
}

View File

@@ -1,14 +0,0 @@
{
"bootstrap-sha": "1cfe0de787ed8b7f84e70d68a64927da6a21c62d",
"commit-search-depth": 100,
"plugins": ["node-workspace"],
"packages": {
"packages/desktop": {},
"packages/web": {},
"packages/mobile": {},
"packages/components-meta": {},
"packages/icons": {},
"packages/toast": {},
"packages/styles": {}
}
}

View File

@@ -4950,9 +4950,16 @@ __metadata:
languageName: node
linkType: hard
"@standardnotes/components-meta@workspace:*, @standardnotes/components-meta@workspace:packages/components":
"@standardnotes/components@npm:1.9.1, @standardnotes/components@npm:^1.9.1":
version: 1.9.1
resolution: "@standardnotes/components@npm:1.9.1"
checksum: 32c2dbb0295086f6ef77092c4a316f3af077c400598520240ae00c51d752ad59e45bc082013e1a070662b17882487c054c8f2f491179c41de5cbd5b90797b16f
languageName: node
linkType: hard
"@standardnotes/components@workspace:*, @standardnotes/components@workspace:packages/components":
version: 0.0.0-use.local
resolution: "@standardnotes/components-meta@workspace:packages/components"
resolution: "@standardnotes/components@workspace:packages/components"
dependencies:
"@standardnotes/deterministic-zip": ^1.2.0
"@standardnotes/features": ^1.45.1
@@ -4964,13 +4971,6 @@ __metadata:
languageName: unknown
linkType: soft
"@standardnotes/components@npm:1.9.1, @standardnotes/components@npm:^1.9.1":
version: 1.9.1
resolution: "@standardnotes/components@npm:1.9.1"
checksum: 32c2dbb0295086f6ef77092c4a316f3af077c400598520240ae00c51d752ad59e45bc082013e1a070662b17882487c054c8f2f491179c41de5cbd5b90797b16f
languageName: node
linkType: hard
"@standardnotes/config@npm:^2.4.3":
version: 2.4.3
resolution: "@standardnotes/config@npm:2.4.3"
@@ -5586,7 +5586,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@standardnotes/web-server@workspace:packages/web-server"
dependencies:
"@standardnotes/components-meta": "workspace:*"
"@standardnotes/components": "workspace:*"
"@standardnotes/web": "workspace:*"
languageName: unknown
linkType: soft