chore: workflow
This commit is contained in:
25
.github/workflows/version-bump.yml
vendored
25
.github/workflows/version-bump.yml
vendored
@@ -5,15 +5,29 @@ on:
|
|||||||
branches: [ develop, main ]
|
branches: [ develop, main ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
Build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
|
token: ${{ secrets.CI_PAT_TOKEN }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Setup git config
|
||||||
|
run: |
|
||||||
|
git config --global user.name "standardci"
|
||||||
|
git config --global user.email "ci@standardnotes.com"
|
||||||
|
- 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: Set up Ruby
|
- name: Set up Ruby
|
||||||
uses: ruby/setup-ruby@v1
|
uses: ruby/setup-ruby@v1
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn install
|
run: yarn install
|
||||||
- name: ESLint
|
- name: ESLint
|
||||||
@@ -22,5 +36,10 @@ jobs:
|
|||||||
run: yarn build
|
run: yarn build
|
||||||
- name: Test
|
- name: Test
|
||||||
run: yarn test
|
run: yarn test
|
||||||
- name: Bump Version
|
|
||||||
run: yarn release
|
- name: Bump Prod Version
|
||||||
|
if: ${{ github.ref == 'refs/heads/main' }}
|
||||||
|
run: yarn release:prod
|
||||||
|
- name: Bump Beta Version
|
||||||
|
if: ${{ github.ref == 'refs/heads/develop' }}
|
||||||
|
run: yarn release:beta
|
||||||
|
|||||||
@@ -11,10 +11,10 @@
|
|||||||
"node": ">=12.19.0 <17.0.0"
|
"node": ">=12.19.0 <17.0.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "yarn workspaces foreach --parallel run lint",
|
"lint": "yarn workspaces foreach --parallel --verbose run lint",
|
||||||
"test": "yarn workspaces foreach --parallel run test",
|
"test": "yarn workspaces foreach --parallel --verbose run test",
|
||||||
"clean": "lerna run clean",
|
"clean": "lerna run clean",
|
||||||
"build": "yarn workspaces foreach -pt run build",
|
"build": "yarn workspaces foreach -pt --verbose run build",
|
||||||
"build:icons": "yarn workspace @standardnotes/icons build",
|
"build:icons": "yarn workspace @standardnotes/icons build",
|
||||||
"build:styles": "yarn workspace @standardnotes/styles build",
|
"build:styles": "yarn workspace @standardnotes/styles build",
|
||||||
"build:web": "yarn workspace @standardnotes/web build",
|
"build:web": "yarn workspace @standardnotes/web build",
|
||||||
@@ -22,7 +22,8 @@
|
|||||||
"start:server:web:localhost": "lerna run start:no-binding --scope=@standardnotes/web-server",
|
"start:server:web:localhost": "lerna run start:no-binding --scope=@standardnotes/web-server",
|
||||||
"prepare": "husky install",
|
"prepare": "husky install",
|
||||||
"reset": "find . -type dir -name node_modules | xargs rm -rf && rm -rf yarn.lock",
|
"reset": "find . -type dir -name node_modules | xargs rm -rf && rm -rf yarn.lock",
|
||||||
"release": "lerna version --conventional-commits --yes -m \"chore(release): publish\""
|
"release:prod": "lerna version --conventional-commits --yes -m \"chore(release): publish\"",
|
||||||
|
"release:beta": "lerna version --conventional-prerelease --conventional-commits --yes -m \"chore(release): publish\""
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"@types/styled-components/@types/react": "17.0.2",
|
"@types/styled-components/@types/react": "17.0.2",
|
||||||
|
|||||||
@@ -8,8 +8,8 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "echo BUILDING COMPONENTS && yarn workspaces foreach --parallel run build",
|
"build": "yarn workspaces foreach --parallel --verbose run build",
|
||||||
"lint": "yarn workspaces foreach --parallel run lint"
|
"lint": "yarn workspaces foreach --parallel --verbose run lint"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@standardnotes/deterministic-zip": "^1.2.0",
|
"@standardnotes/deterministic-zip": "^1.2.0",
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build:remove-unpacked": "rimraf dist/{linux-*,mac,win-*}",
|
"build:remove-unpacked": "rimraf dist/{linux-*,mac,win-*}",
|
||||||
"build": "echo BUILDING DESKTOP && yarn run webpack --config desktop.webpack.prod.js",
|
"build": "yarn run webpack --config desktop.webpack.prod.js",
|
||||||
"build:desktop:all": "yarn workspaces foreach -ptR run build",
|
"build:desktop:all": "yarn workspaces foreach -ptR run build",
|
||||||
"clean:build": "rimraf app/dist/",
|
"clean:build": "rimraf app/dist/",
|
||||||
"clean:tests": "rimraf test/data/tmp/",
|
"clean:tests": "rimraf test/data/tmp/",
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "webpack-dev-server --config webpack.config.js",
|
"start": "webpack-dev-server --config webpack.config.js",
|
||||||
"watch": "webpack -w --config webpack.config.js",
|
"watch": "webpack -w --config webpack.config.js",
|
||||||
"build": "echo BUILDING ICONS && webpack --config webpack.config.js && yarn run tsc",
|
"build": "webpack --config webpack.config.js && yarn run tsc",
|
||||||
"tsc": "tsc --project ./tsconfig.json"
|
"tsc": "tsc --project ./tsconfig.json"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@standardnotes/mobile",
|
"name": "@standardnotes/mobile",
|
||||||
"version": "3.23.0",
|
"version": "3.23.0",
|
||||||
"user-version": "3.22.0",
|
"user-version": "3.23.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
"access": "public"
|
"access": "public"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "echo BUILDING STYLES && webpack --mode='production' && yarn run tsc",
|
"build": "webpack --mode='production' && yarn run tsc",
|
||||||
"start": "webpack --watch --mode='development'",
|
"start": "webpack --watch --mode='development'",
|
||||||
"lint": "prettier --check *.js"
|
"lint": "prettier --check *.js"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
"watch": "webpack -w --config web.webpack.dev.js",
|
"watch": "webpack -w --config web.webpack.dev.js",
|
||||||
"clean": "rm -fr dist",
|
"clean": "rm -fr dist",
|
||||||
"prebuild": "yarn clean",
|
"prebuild": "yarn clean",
|
||||||
"build": "echo BUILDING WEB && webpack --config web.webpack.prod.js && yarn tsc",
|
"build": "webpack --config web.webpack.prod.js && yarn tsc",
|
||||||
"build:web:all": "yarn workspaces foreach -ptR run build",
|
"build:web:all": "yarn workspaces foreach -ptR run build",
|
||||||
"lint": "eslint src/javascripts",
|
"lint": "eslint src/javascripts",
|
||||||
"tsc": "tsc --project tsconfig.json",
|
"tsc": "tsc --project tsconfig.json",
|
||||||
|
|||||||
Reference in New Issue
Block a user