-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added possibility to pass not ony functions and classes
BREAKING CHANGE: the buildInstantly flag was removed
- Loading branch information
Showing
15 changed files
with
441 additions
and
469 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,54 +1,56 @@ | ||
name: NPM Package | ||
on: | ||
push: | ||
branches: [ master ] | ||
branches: [master] | ||
pull_request: | ||
branches: [ master ] | ||
branches: [master] | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
cache: 'npm' | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: install dependencies | ||
run: npm ci | ||
|
||
- name: test | ||
run: npm run test | ||
|
||
- name: build | ||
run: npm run build | ||
|
||
- name: set version | ||
if: github.event_name == 'release' | ||
run: npm --no-git-tag-version version ${GITHUB_REF#refs/*/} | ||
|
||
- name: publish package | ||
if: github.event_name == 'release' | ||
run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} | ||
|
||
- name: SonarCloud Scan | ||
uses: sonarsource/sonarcloud-github-action@master | ||
env: | ||
SONAR_TOKEN: ${{ secrets.SONAR_AUTH_TOKEN }} | ||
with: | ||
args: > | ||
-Dsonar.organization=mrcwbr | ||
-Dsonar.projectKey=ioc-service-container | ||
-Dsonar.sources=src/ | ||
-Dsonar.tests=tests/ | ||
-Dsonar.verbose=true | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
cache: 'npm' | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: install dependencies | ||
run: npm ci | ||
|
||
- name: check format | ||
run: npm run format:check | ||
|
||
- name: test | ||
run: npm run test | ||
|
||
- name: build | ||
run: npm run build | ||
|
||
- name: set version | ||
if: github.event_name == 'release' | ||
run: npm --no-git-tag-version version ${GITHUB_REF#refs/*/} | ||
|
||
- name: publish package | ||
if: github.event_name == 'release' | ||
run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} | ||
|
||
- name: SonarCloud Scan | ||
uses: sonarsource/sonarcloud-github-action@master | ||
env: | ||
SONAR_TOKEN: ${{ secrets.SONAR_AUTH_TOKEN }} | ||
with: | ||
args: > | ||
-Dsonar.organization=mrcwbr | ||
-Dsonar.projectKey=ioc-service-container | ||
-Dsonar.sources=src/ | ||
-Dsonar.tests=tests/ | ||
-Dsonar.javascript.lcov.reportPaths=./coverage/lcov.info |
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,4 @@ | ||
{ | ||
"singleQuote": true, | ||
"endOfLine": "auto" | ||
} |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.