Revert "chore(setup): run linter before building on workflows"
This reverts commit ac24256f34.
This commit is contained in:
24
.github/workflows/pr.yml
vendored
24
.github/workflows/pr.yml
vendored
@@ -9,37 +9,17 @@ on:
|
|||||||
- '!packages/components/**'
|
- '!packages/components/**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
- name: Set up Node
|
|
||||||
uses: actions/setup-node@v3
|
|
||||||
with:
|
|
||||||
registry-url: 'https://registry.npmjs.org'
|
|
||||||
node-version-file: '.nvmrc'
|
|
||||||
cache: 'yarn'
|
|
||||||
- name: Install dependencies
|
|
||||||
run: yarn install --immutable
|
|
||||||
- name: ESLint
|
|
||||||
run: yarn lint
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Set up Node
|
|
||||||
uses: actions/setup-node@v3
|
|
||||||
with:
|
|
||||||
registry-url: 'https://registry.npmjs.org'
|
|
||||||
node-version-file: '.nvmrc'
|
|
||||||
cache: 'yarn'
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn install --immutable
|
run: yarn install --immutable
|
||||||
- name: Build
|
- name: Build
|
||||||
run: yarn build:all
|
run: yarn build:all
|
||||||
|
- name: ESLint
|
||||||
|
run: yarn lint
|
||||||
- name: Build Android
|
- name: Build Android
|
||||||
run: yarn android:bundle
|
run: yarn android:bundle
|
||||||
- name: Test
|
- name: Test
|
||||||
|
|||||||
24
.github/workflows/publish.yml
vendored
24
.github/workflows/publish.yml
vendored
@@ -5,29 +5,8 @@ on:
|
|||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Lint:
|
|
||||||
if: "${{ contains(github.event.head_commit.message, 'chore(release): publish') == false }}"
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Set up Node
|
|
||||||
uses: actions/setup-node@v3
|
|
||||||
with:
|
|
||||||
registry-url: 'https://registry.npmjs.org'
|
|
||||||
node-version-file: '.nvmrc'
|
|
||||||
cache: 'yarn'
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: yarn install --immutable
|
|
||||||
|
|
||||||
- name: ESLint
|
|
||||||
run: yarn lint
|
|
||||||
|
|
||||||
Build:
|
Build:
|
||||||
if: "${{ contains(github.event.head_commit.message, 'chore(release): publish') == false }}"
|
if: "${{ contains(github.event.head_commit.message, 'chore(release): publish') == false }}"
|
||||||
needs: Lint
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
@@ -61,6 +40,9 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: yarn build:all
|
run: yarn build:all
|
||||||
|
|
||||||
|
- name: ESLint
|
||||||
|
run: yarn lint
|
||||||
|
|
||||||
- name: Build Android
|
- name: Build Android
|
||||||
run: yarn android:bundle
|
run: yarn android:bundle
|
||||||
|
|
||||||
|
|||||||
33
.github/workflows/web.release.prod.yml
vendored
33
.github/workflows/web.release.prod.yml
vendored
@@ -12,54 +12,27 @@ on:
|
|||||||
- '!*standardnotes/*web*alpha*'
|
- '!*standardnotes/*web*alpha*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
- name: Set up Node
|
|
||||||
uses: actions/setup-node@v3
|
|
||||||
with:
|
|
||||||
registry-url: 'https://registry.npmjs.org'
|
|
||||||
node-version-file: '.nvmrc'
|
|
||||||
cache: 'yarn'
|
|
||||||
- name: Install dependencies
|
|
||||||
run: yarn install --immutable
|
|
||||||
- name: ESLint
|
|
||||||
run: yarn lint
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Set up Node
|
|
||||||
uses: actions/setup-node@v3
|
|
||||||
with:
|
|
||||||
registry-url: 'https://registry.npmjs.org'
|
|
||||||
node-version-file: '.nvmrc'
|
|
||||||
cache: 'yarn'
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn install --immutable
|
run: yarn install --immutable
|
||||||
- name: Build
|
- name: Build
|
||||||
run: yarn build:web
|
run: yarn build:web
|
||||||
|
- name: ESLint
|
||||||
|
run: yarn lint
|
||||||
- name: Test
|
- name: Test
|
||||||
run: yarn test
|
run: yarn test
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
needs: [lint, test]
|
needs: test
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Set up Node
|
|
||||||
uses: actions/setup-node@v3
|
|
||||||
with:
|
|
||||||
registry-url: 'https://registry.npmjs.org'
|
|
||||||
node-version-file: '.nvmrc'
|
|
||||||
cache: 'yarn'
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn install --immutable
|
run: yarn install --immutable
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
Reference in New Issue
Block a user