-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* chore: #116 #117 update ts-definition pipeline, scripts * chore: lock version of package "foundation-ts-definition" for all apps. update PR comment * fix * update elements package to include foundation definition * remove password param from test
- Loading branch information
NghiaPham
authored
Feb 13, 2020
1 parent
99d98ea
commit a97fc45
Showing
40 changed files
with
326 additions
and
10,897 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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Check for Typescript definition update | ||
|
||
on: | ||
schedule: | ||
# * is a special character in YAML so you have to quote this string | ||
- cron: '0 0 1-31 * *' | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checks out repository to $GITHUB_WORKSPACE | ||
uses: actions/checkout@v1 | ||
|
||
- name: Setup Node Environement | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
|
||
- name: Cache node modules | ||
id: cache | ||
uses: actions/cache@v1 | ||
with: | ||
path: node_modules | ||
key: build-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
build-${{ hashFiles('**/yarn.lock') }} | ||
- name: Integrate Git credential | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Fetch latest definition | ||
run: yarn workspace @reapit/foundations-ts-definitions fetch-definition | ||
|
||
- name: If definition is changed then bump minor npm package, publish and push commit to master | ||
run: yarn workspace @reapit/foundations-ts-definitions handle-cron-job | ||
|
||
env: | ||
NPM_TOKEN: ${{secrets.NPM_TOKEN}} | ||
GITHUB_TOKEN: ${{secrets.GITHUB_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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ name: Release production | |
on: | ||
push: | ||
tags: | ||
- '*' | ||
- '*' | ||
|
||
env: | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,4 +56,4 @@ elements/public | |
out* | ||
package-lock.json | ||
.env | ||
invite-developers.js | ||
invite-developers.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 |
---|---|---|
@@ -1 +1 @@ | ||
//registry.npmjs.org/:_authToken=${NPM_TOKEN} | ||
//registry.npmjs.org/:_authToken=${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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
//registry.npmjs.org/:_authToken=${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
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 @@ | ||
//registry.npmjs.org/:_authToken=${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 @@ | ||
//registry.npmjs.org/:_authToken=${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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,23 @@ | ||
{ | ||
"name": "@reapit/foundations-ts-definitions", | ||
"version": "0.0.18", | ||
"version": "0.0.38", | ||
"license": "MIT", | ||
"files": [ | ||
"types/*" | ||
], | ||
"main": "./types/index.ts", | ||
"peerDependencies": { | ||
}, | ||
"license": "MIT", | ||
"scripts": { | ||
"fetch:platform": "node './scripts/fetch-platform-definition.js'", | ||
"fetch:marketPlace": "node './scripts/fetch-marketplace-definition.js'", | ||
"fetch:definition": "rimraf types && mkdir types && yarn fetch:platform && yarn fetch:marketPlace && yarn create-index-file", | ||
"create-index-file": "node './scripts/create-index-file.js'", | ||
"handle-cronjob": "node ./scripts/handle-cronjob.js" | ||
}, | ||
"dependencies": { | ||
"release:prod": "node ../../scripts/foundations-ts-definitions/release-npm.js foundations-ts-definitions", | ||
"fetch-definition": "node '../../scripts/foundations-ts-definitions/fetch-definition.js'", | ||
"handle-cron-job": "node '../../scripts/foundations-ts-definitions/handle-cronjob.js'", | ||
"test:update-badges": "echo 'not implmented'" | ||
}, | ||
"lint-staged": { | ||
"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}": [ | ||
"prettier --write", | ||
"git add" | ||
] | ||
} | ||
}, | ||
"dependencies": {}, | ||
"peerDependencies": {} | ||
} |
15 changes: 0 additions & 15 deletions
15
packages/foundations-ts-definitions/scripts/check-version.js
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
packages/foundations-ts-definitions/scripts/create-index-file.js
This file was deleted.
Oops, something went wrong.
40 changes: 0 additions & 40 deletions
40
packages/foundations-ts-definitions/scripts/release-master.js
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.