-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix eslint issues & replace regex by string in tests. (#4)
* fix eslint issues & replace regex by string in tests. * update test.yaml file.
- Loading branch information
1 parent
a45a38f
commit 20beae1
Showing
8 changed files
with
233 additions
and
117 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,42 +1,25 @@ | ||
name: Publish Package to npmjs | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
pull_request: | ||
branches: ['**'] | ||
types: [synchronize, opened, reopened, ready_for_review] | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
lint: | ||
runs-on: ubuntu-latest | ||
|
||
if: github.event.pull_request.draft == false # run this job only if the PR is not in a draft state | ||
strategy: | ||
matrix: | ||
node: [ '18' ] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Update version | ||
run: | | ||
# update version in package.json with release version | ||
sed -i 's/"version": "[0-9]*\.[0-9]*\.[0-9]*"/"version": "'$VERSION'"/g' package.json | ||
env: | ||
VERSION: ${{ github.event.release.tag_name }} | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
node-version: ${{ matrix.node }} | ||
- run: npm i | ||
- name: lint | ||
run: ./node_modules/.bin/prettier --check **/*.ts | ||
|
||
- run: tsc | ||
|
||
- run: npm run test | ||
|
||
- name: Build | ||
run: npm run build | ||
|
||
- name: Publish to npm | ||
run: npm publish | ||
- name: test | ||
run: npm run test |
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
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,2 +1,2 @@ | ||
export { CronExpressionBuilder} from './cron-expression-builder'; | ||
export { CronValidators} from './cron-validators'; | ||
export { CronExpressionBuilder } from './cron-expression-builder'; | ||
export { CronValidators } from './cron-validators'; |
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.