-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 67cf24e
Showing
17 changed files
with
21,035 additions
and
0 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,25 @@ | ||
{ | ||
"extends": "@callstack/eslint-config/node", | ||
"env": { | ||
"node": false, | ||
"browser": false, | ||
"es6": true | ||
}, | ||
"globals": { | ||
"console": true | ||
}, | ||
"rules": { | ||
"import/order": ["error", { "alphabetize": { "order": "asc" } }] | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": ["*.config.js"], | ||
"env": { | ||
"node": true | ||
}, | ||
"rules": { | ||
"import/no-extraneous-dependencies": 0 | ||
} | ||
} | ||
] | ||
} |
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,24 @@ | ||
name: "Lint" | ||
|
||
on: | ||
# Run this workflow on master always | ||
push: | ||
branches: | ||
- master | ||
# Run this workflow on PRs that target master, | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
if: contains(toJson(github.event.commits), '[skip ci]') == false && contains(toJson(github.event.commits), '[ci skip]') == false | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
- name: Lint | ||
run: yarn lint | ||
|
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,41 @@ | ||
name: "publish" | ||
|
||
on: | ||
# Run this workflow on master always | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'push' && contains(toJson(github.event.commits), '[skip ci]') == false && contains(toJson(github.event.commits), '[ci skip]') == false | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
with: | ||
ref: master | ||
fetch-depth: 0 | ||
- name: Setup git | ||
run: | | ||
git config --local user.email "ci@chargetrip.com" | ||
git config --local user.name "ci-chargetrip" | ||
git remote set-url origin https://ci-chargetrip:$GH_TOKEN@github.com/chargetrip/types.git | ||
git fetch | ||
git checkout master | ||
git pull | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
- name: Setup NPM credentials | ||
uses: filipstefansson/set-npm-token-action@v1 | ||
with: | ||
token: ${{ secrets.NPM_TOKEN }} | ||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
- name: Build package | ||
run: yarn build | ||
- name: Semantic release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
run: npx semantic-release |
Oops, something went wrong.