-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #104 from batoulapps/update-workflows
Update workflows
- Loading branch information
Showing
8 changed files
with
121 additions
and
128 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Release | ||
'on': | ||
push: | ||
branches: | ||
- master | ||
- next | ||
- beta | ||
- '*.x' | ||
jobs: | ||
release: | ||
name: release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
cache: npm | ||
node-version: 16 | ||
- run: npm ci | ||
- run: npx semantic-release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Test | ||
'on': | ||
push: | ||
branches: | ||
- master | ||
- renovate/** | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
jobs: | ||
test_matrix: | ||
strategy: | ||
matrix: | ||
node-version: [12, 14, 16, 17] | ||
os: | ||
- ubuntu-latest | ||
runs-on: '${{ matrix.os }}' | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: 'Use Node.js ${{ matrix.node-version }}' | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '${{ matrix.node-version }}' | ||
cache: npm | ||
- run: npm ci | ||
- run: npm run test | ||
coverage: | ||
runs-on: ubuntu-latest | ||
needs: test_matrix | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
cache: npm | ||
- run: npm ci | ||
- run: npm run lint | ||
- run: npm run test | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v2 | ||
with: | ||
directory: ./coverage | ||
build: | ||
runs-on: ubuntu-latest | ||
needs: test_matrix | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
cache: npm | ||
- run: npm ci | ||
- run: npm run build |
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,20 +1,34 @@ | ||
{ | ||
"branches": [ "master", "next", "next-major", "build", | ||
"branches": [ | ||
"master", | ||
"next", | ||
"next-major", | ||
"build", | ||
{ | ||
"name": "beta", | ||
"name": "beta", | ||
"prerelease": true | ||
}, | ||
}, | ||
{ | ||
"name": "alpha", | ||
"name": "alpha", | ||
"prerelease": true | ||
} | ||
], | ||
"plugins": [ | ||
"@semantic-release/commit-analyzer", | ||
"@semantic-release/release-notes-generator", | ||
"@semantic-release/changelog", | ||
"@semantic-release/github", | ||
"@semantic-release/npm", | ||
"@semantic-release/git" | ||
[ | ||
"@semantic-release/npm", | ||
{ | ||
"tarballDir": "dist" | ||
} | ||
], | ||
"@semantic-release/git", | ||
[ | ||
"@semantic-release/github", | ||
{ | ||
"assets": "dist/*.tgz" | ||
} | ||
] | ||
} | ||
] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
{ | ||
"name": "adhan", | ||
"version": "4.3.2", | ||
"description": "High precision Islamic prayer time library", | ||
"version": "4.3.2", | ||
"author": "Ameir Al-Zoubi <[email protected]>", | ||
"license": "MIT", | ||
"main": "lib/cjs/Adhan.js", | ||
"module": "lib/esm/Adhan.js", | ||
"types": "lib/types/Adhan.d.ts", | ||
|
@@ -40,8 +42,6 @@ | |
"salaat", | ||
"namaz" | ||
], | ||
"author": "Ameir Al-Zoubi <[email protected]>", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@babel/cli": "^7.17.6", | ||
"@babel/core": "^7.17.9", | ||
|
@@ -52,7 +52,10 @@ | |
"@rollup/plugin-babel": "^5.3.1", | ||
"@rollup/plugin-node-resolve": "^13.2.1", | ||
"@semantic-release/changelog": "^6.0.1", | ||
"@semantic-release/commit-analyzer": "^9.0.2", | ||
"@semantic-release/git": "^10.0.1", | ||
"@semantic-release/github": "^8.0.4", | ||
"@semantic-release/release-notes-generator": "^10.0.3", | ||
"@tsconfig/node12": "^1.0.9", | ||
"@types/jest": "^27.4.1", | ||
"@typescript-eslint/eslint-plugin": "^5.20.0", | ||
|