-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into sivaja/feat/asc-18271-implement-sonar-scan
- Loading branch information
Showing
1,262 changed files
with
48,523 additions
and
81,403 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
node_modules/ | ||
storybook-build/ | ||
build/ | ||
build/ | ||
|
||
dist/ | ||
jest.config.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
module.exports = { | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:import/recommended', | ||
'plugin:import/typescript', | ||
'prettier', | ||
], | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['@typescript-eslint', 'import', 'jest'], | ||
root: true, | ||
rules: { | ||
'@typescript-eslint/no-empty-function': 'off', | ||
'import/no-named-as-default': 'off', | ||
'import/no-named-as-default-member': 'off', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/no-unused-vars': 'off', | ||
'@typescript-eslint/ban-ts-comment': 'off', | ||
}, | ||
ignorePatterns: [ | ||
// Ignore build artifacts | ||
'**/build', | ||
'**/coverage', | ||
'**/.webpackCache', | ||
'**/node_modules', | ||
'**/images', | ||
|
||
// Ignore generated files | ||
'**/__generated__', | ||
'**/generated', | ||
'*.graphql', | ||
], | ||
settings: { | ||
'import/resolver': { | ||
typescript: true, | ||
node: true, | ||
}, | ||
}, | ||
env: { | ||
node: true, | ||
browser: true, | ||
jest: true, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,10 @@ name: Production release pipeline | |
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
release_as: | ||
description: 'release as' | ||
required: true | ||
|
||
jobs: | ||
publish: | ||
|
@@ -16,27 +20,41 @@ jobs: | |
git config user.name "bmo-amity-bot" | ||
git config user.email "[email protected]" | ||
- name: install node | ||
uses: actions/setup-node@v2 | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
run_install: false | ||
|
||
- name: Get pnpm store directory | ||
id: pnpm-cache | ||
run: | | ||
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT | ||
- name: cache deps | ||
uses: actions/cache@v2 | ||
id: cache-deps | ||
- uses: actions/cache@v3 | ||
name: Setup pnpm cache | ||
with: | ||
path: | | ||
**/node_modules | ||
**/.eslintcache | ||
key: node_modules-${{ hashFiles('**/package-lock.json') }} | ||
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: increase version (patch) | ||
run: pnpm standard-version --yes | ||
if: github.event.inputs.release_as == 'patch' | ||
|
||
- name: install deps | ||
if: steps.cache-deps.outputs.cache-hit != 'true' | ||
run: npm ci | ||
- name: increase version (minor) | ||
run: pnpm standard-version --yes --release-as minor | ||
if: github.event.inputs.release_as == 'minor' | ||
|
||
- name: increase version | ||
run: npx standard-version --yes | ||
- name: increase version (major) | ||
run: pnpm standard-version --yes --release-as major | ||
if: github.event.inputs.release_as == 'major' | ||
|
||
- name: build | ||
run: npm run build | ||
run: pnpm run build | ||
|
||
- name: publish on npm | ||
uses: JS-DevTools/npm-publish@v1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
node_modules/ | ||
build/ | ||
dist/ | ||
storybook-build/ | ||
.idea/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@fortawesome:registry=https://registry.npmjs.org |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.