Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
timkuilman committed Jul 27, 2020
0 parents commit 67cf24e
Show file tree
Hide file tree
Showing 17 changed files with 21,035 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .eslintrc
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
}
}
]
}
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
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

41 changes: 41 additions & 0 deletions .github/workflows/publish.yml
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
Loading

0 comments on commit 67cf24e

Please sign in to comment.