Skip to content

Commit

Permalink
fix: add circle ci config and release script (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludtkemorgan authored Feb 9, 2023
1 parent 90a0ba5 commit c903734
Show file tree
Hide file tree
Showing 6 changed files with 2,043 additions and 54 deletions.
21 changes: 21 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: 2.1

orbs:
node: circleci/[email protected]

jobs:
build_and_test: # this can be any name you choose
executor: node/default # use the default executor defined within the orb
steps:
- checkout
- node/install-packages:
pkg-manager: yarn
- run:
command: yarn test --watchAll=false
name: Run tests

workflows:
version: 2
build:
jobs:
- build_and_test
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release
on:
push:
branches:
- main
- alpha
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: "lts/*"
- name: Install dependencies
run: yarn install
- name: Build Package
run: yarn build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
1 change: 1 addition & 0 deletions index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./src/expandableText/ExpandableText";
26 changes: 24 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,28 @@
{
"name": "@bloom-housing/ui-seeds",
"version": "0.1.0",
"private": true,
"homepage": "https://github.com/bloom-housing/ui-seeds",
"main": "index.js",
"license": "Apache-2.0",
"private": false,
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org"
},
"release": {
"branches": [
"main",
{
"name": "alpha",
"prerelease": true
}
]
},
"files": [
"dist",
"src",
"index.ts"
],
"dependencies": {
"@fortawesome/fontawesome-svg-core": "6.2.0",
"@fortawesome/free-regular-svg-icons": "6.2.0",
Expand All @@ -26,7 +47,7 @@
},
"scripts": {
"start": "start-storybook -s ./public",
"build": "react-scripts build",
"build": "tsc",
"test": "react-scripts test",
"eject": "react-scripts eject",
"storybook": "start-storybook -p 6006 -s public",
Expand Down Expand Up @@ -77,6 +98,7 @@
"postcss-loader": "7.0.1",
"prop-types": "^15.8.1",
"sass": "1.56.1",
"semantic-release": "19.0.5",
"ts-loader": "9.4.1",
"webpack": "^5.75.0"
}
Expand Down
9 changes: 5 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
{
"compilerOptions": {
"outDir": "dist",
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"sourceMap": true,
"rootDirs": ["src"],
"baseUrl": "src",
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
Expand All @@ -17,10 +21,7 @@
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx"
},
"include": [
"src"
]
"include": ["src/**/*"]
}
Loading

0 comments on commit c903734

Please sign in to comment.