Skip to content

Commit

Permalink
updaing github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-jonathan committed Jul 21, 2024
1 parent 8338a20 commit 58fa96c
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 31 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/develop-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,26 @@ on:
jobs:
lint:
uses: cosmicmind/actions/.github/workflows/lint-code.yml@release
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
codeql:
uses: cosmicmind/actions/.github/workflows/codeql.yml@release

build:
needs:
- lint
uses: cosmicmind/actions/.github/workflows/build-package.yml@release
with:
BUILD_TARGET: develop
NODE_ENV: development
VITE_MODE: test
BUILD_TARGET: release
NODE_ENV: production
VITE_MODE: production

test:
needs:
- build
uses: cosmicmind/actions/.github/workflows/build-package.yml@release
with:
BUILD_TARGET: test
NODE_ENV: development
BUILD_TARGET: production
NODE_ENV: production
VITE_MODE: test

codeql:
needs:
- test
uses: cosmicmind/actions/.github/workflows/codeql.yml@release
25 changes: 16 additions & 9 deletions .github/workflows/feature-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,26 @@ on:
jobs:
lint:
uses: cosmicmind/actions/.github/workflows/lint-code.yml@release
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
codeql:
uses: cosmicmind/actions/.github/workflows/codeql.yml@release

build:
needs:
- lint
uses: cosmicmind/actions/.github/workflows/build-package.yml@release
with:
BUILD_TARGET: develop
NODE_ENV: development
VITE_MODE: test
BUILD_TARGET: release
NODE_ENV: production
VITE_MODE: production

test:
needs:
- build
uses: cosmicmind/actions/.github/workflows/build-package.yml@release
with:
BUILD_TARGET: test
NODE_ENV: development
BUILD_TARGET: production
NODE_ENV: production
VITE_MODE: test

codeql:
needs:
- test
uses: cosmicmind/actions/.github/workflows/codeql.yml@release
32 changes: 19 additions & 13 deletions .github/workflows/release-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,34 @@ on:
jobs:
lint:
uses: cosmicmind/actions/.github/workflows/lint-code.yml@release
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
codeql:
uses: cosmicmind/actions/.github/workflows/codeql.yml@release

build:
needs:
- lint
uses: cosmicmind/actions/.github/workflows/build-package.yml@release
with:
BUILD_TARGET: develop
NODE_ENV: development
VITE_MODE: test
BUILD_TARGET: release
NODE_ENV: production
VITE_MODE: production

test:
needs:
- build
uses: cosmicmind/actions/.github/workflows/build-package.yml@release
with:
BUILD_TARGET: test
NODE_ENV: development
BUILD_TARGET: production
NODE_ENV: production
VITE_MODE: test

codeql:
needs:
- test
uses: cosmicmind/actions/.github/workflows/codeql.yml@release

publish:
needs:
- lint
- codeql
- build
- test
uses: cosmicmind/actions/.github/workflows/publish-package.yml@release
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GHCR_TOKEN: ${{ secrets.GHCR_TOKEN }}

0 comments on commit 58fa96c

Please sign in to comment.