Skip to content

Commit

Permalink
Merge pull request #67 from lifeiscontent/chore/fix-publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeiscontent authored Jan 3, 2022
2 parents 44802a7 + 3a8620a commit 6c55c13
Show file tree
Hide file tree
Showing 16 changed files with 14,784 additions and 4,729 deletions.
13 changes: 7 additions & 6 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "jest"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
Expand All @@ -10,12 +7,16 @@
"plugin:react-hooks/recommended",
"plugin:jest/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "jest"],
"root": true,
"rules": {
"react/prop-types": 0,
"react/react-in-jsx-scope": 0
},
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"react/prop-types": 0
}
}
6 changes: 0 additions & 6 deletions .github/dependabot.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Continuous Delivery
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.release.target_commitish }}
- uses: actions/setup-node@v1
with:
node-version: 16.x
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: git config --global user.name "GitHub CD bot"
- run: git config --global user.email "github-cd-bot@example.com"
- run: npm version ${{ github.event.release.tag_name }}
- run: npm run build
- run: npm run lint
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: git push
env:
github-token: ${{ secrets.GITHUB_TOKEN }}
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Continuous Integration
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 16.x
- run: npm ci
- run: npm run build
- run: npm run lint
37 changes: 0 additions & 37 deletions .github/workflows/main.yml

This file was deleted.

1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

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

pnpm lint
npm run lint
4 changes: 2 additions & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"bracketSpacing": true,
"printWidth": 80,
"semi": true,
"singleQuote": true,
"trailingComma": "es5",
"bracketSpacing": true,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false
}
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodejs 14.17.4
nodejs 16.13.1
Loading

0 comments on commit 6c55c13

Please sign in to comment.