Skip to content

Commit

Permalink
Define environment variables globally in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Sep 24, 2023
1 parent 9706ee9 commit ce80284
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
pull_request:
branches: [main]

env:
HUSKY: 0

jobs:
lint:
name: Static code analysis
Expand Down Expand Up @@ -35,8 +38,6 @@ jobs:

- name: Install dependencies
run: yarn --immutable
env:
HUSKY: 0

- name: Build package
run: yarn build
Expand Down Expand Up @@ -72,8 +73,6 @@ jobs:

- name: Install dependencies
run: yarn --immutable
env:
HUSKY: 0

- name: Build package
run: yarn build
Expand Down Expand Up @@ -109,8 +108,6 @@ jobs:

- name: Install dependencies
run: yarn --immutable
env:
HUSKY: 0

- name: Prettier
run: yarn prettier
Expand Down Expand Up @@ -143,8 +140,6 @@ jobs:

- name: Install dependencies
run: yarn --immutable
env:
HUSKY: 0

- name: Run tests
run: yarn unit
5 changes: 3 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
release:
types: [published]

env:
HUSKY: 0

permissions:
id-token: write

Expand Down Expand Up @@ -36,8 +39,6 @@ jobs:

- name: Install dependencies
run: yarn --immutable
env:
HUSKY: 0

- name: Publish with latest tag
if: github.event.release.prelease == false
Expand Down

0 comments on commit ce80284

Please sign in to comment.