Skip to content

Commit

Permalink
fix(tooling): added release automation and pre-commit typescript comp…
Browse files Browse the repository at this point in the history
…ilation
  • Loading branch information
Luke Brandon Farrell committed Jun 2, 2021
1 parent 7c74ddd commit 4679b3f
Show file tree
Hide file tree
Showing 11 changed files with 9,489 additions and 3,082 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

name: Release
on:
push:
branches:
- master
jobs:
release:
name: Release
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install dependencies
run: npm ci
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release

1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit $1
7 changes: 7 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"


npm run pre-commit
npx tsc

8 changes: 8 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

{
"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}": [
"prettier --write",
"git add ."
]
}

1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] };
1 change: 1 addition & 0 deletions lib/RNNDrawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ var __assign = (this && this.__assign) || function () {
return __assign.apply(this, arguments);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.DirectionType = void 0;
/* NPM - Node Package Manage */
var React = require("react");
var react_native_1 = require("react-native");
Expand Down
1 change: 1 addition & 0 deletions lib/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @description Event dispatcher for comunication between components.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.dispatch = exports.listen = void 0;
/**
* @description events
* @private
Expand Down
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var RNNDrawer_1 = require("./RNNDrawer");
exports.RNNDrawer = RNNDrawer_1.default;
Object.defineProperty(exports, "RNNDrawer", { enumerable: true, get: function () { return RNNDrawer_1.default; } });
var SideMenuView_1 = require("./SideMenuView");
exports.SideMenuView = SideMenuView_1.default;
Object.defineProperty(exports, "SideMenuView", { enumerable: true, get: function () { return SideMenuView_1.default; } });
Loading

0 comments on commit 4679b3f

Please sign in to comment.