-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from mitsuharu/develop
release 2.2.0
- Loading branch information
Showing
17 changed files
with
814 additions
and
1,258 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
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 |
---|---|---|
@@ -1,51 +1,33 @@ | ||
module.exports = { | ||
'env': { | ||
'browser': true, | ||
'es2021': true | ||
env: { | ||
browser: true, | ||
es2021: true, | ||
}, | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:react/recommended', | ||
], | ||
overrides: [ | ||
{ | ||
env: { | ||
node: true, | ||
}, | ||
files: ['.eslintrc.{js,cjs}'], | ||
parserOptions: { | ||
sourceType: 'script', | ||
}, | ||
}, | ||
'extends': [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:react/recommended' | ||
], | ||
'overrides': [ | ||
{ | ||
'env': { | ||
'node': true | ||
}, | ||
'files': [ | ||
'.eslintrc.{js,cjs}' | ||
], | ||
'parserOptions': { | ||
'sourceType': 'script' | ||
} | ||
} | ||
], | ||
'parser': '@typescript-eslint/parser', | ||
'parserOptions': { | ||
'ecmaVersion': 'latest', | ||
'sourceType': 'module' | ||
}, | ||
'plugins': [ | ||
'@typescript-eslint', | ||
'react' | ||
], | ||
'rules': { | ||
'indent': [ | ||
'error', | ||
2 | ||
], | ||
'linebreak-style': [ | ||
'error', | ||
'unix' | ||
], | ||
'quotes': [ | ||
'error', | ||
'single' | ||
], | ||
'semi': [ | ||
'error', | ||
'never' | ||
] | ||
} | ||
}; | ||
], | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
}, | ||
plugins: ['@typescript-eslint', 'react'], | ||
rules: { | ||
'linebreak-style': ['error', 'unix'], | ||
'quotes': ['error', 'single'], | ||
'semi': ['error', 'never'], | ||
}, | ||
} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -13,47 +13,52 @@ jobs: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20' | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
|
||
# - name: Test | ||
# run: yarn test | ||
|
||
- name: Check for existing tag | ||
id: tag-check | ||
run: | | ||
VERSION=$(jq -r '.version' package.json) | ||
TAG="$VERSION" | ||
if git rev-parse "$TAG" >/dev/null 2>&1; then | ||
echo "Tag $TAG already exists" | ||
echo "::set-output name=tag_exists::true" | ||
else | ||
echo "Tag $TAG does not exist" | ||
echo "::set-output name=tag_exists::false" | ||
fi | ||
- name: Create and push tag | ||
id: create-tag | ||
if: steps.tag-check.outputs.tag_exists == 'false' | ||
run: | | ||
VERSION=$(jq -r '.version' package.json) | ||
TAG="$VERSION" | ||
git config user.name 'github-actions' | ||
git config user.email '[email protected]' | ||
git tag -a "$TAG" -m "Release version $VERSION" | ||
git push origin "$TAG" | ||
- name: Publish to npm | ||
if: steps.tag-check.outputs.tag_exists == 'false' | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
run: npm publish --access=public | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20' | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Lint | ||
run: | | ||
yarn typecheck | ||
yarn lint | ||
- name: Test | ||
run: yarn test | ||
|
||
- name: Check for existing tag | ||
id: tag-check | ||
run: | | ||
VERSION=$(jq -r '.version' package.json) | ||
TAG="$VERSION" | ||
if git rev-parse "$TAG" >/dev/null 2>&1; then | ||
echo "Tag $TAG already exists" | ||
echo "::set-output name=tag_exists::true" | ||
else | ||
echo "Tag $TAG does not exist" | ||
echo "::set-output name=tag_exists::false" | ||
fi | ||
- name: Create and push tag | ||
id: create-tag | ||
if: steps.tag-check.outputs.tag_exists == 'false' | ||
run: | | ||
VERSION=$(jq -r '.version' package.json) | ||
TAG="$VERSION" | ||
git config user.name 'github-actions' | ||
git config user.email '[email protected]' | ||
git tag -a "$TAG" -m "Release version $VERSION" | ||
git push origin "$TAG" | ||
- name: Publish to npm | ||
if: steps.tag-check.outputs.tag_exists == 'false' | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
run: npm publish --access=public |
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 |
---|---|---|
@@ -1,8 +1,4 @@ | ||
{ | ||
"recommendations": [ | ||
"dbaeumer.vscode-eslint", | ||
], | ||
"unwantedRecommendations": [ | ||
"eg2.tslint", | ||
] | ||
"recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"], | ||
"unwantedRecommendations": ["eg2.tslint"] | ||
} |
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 |
---|---|---|
@@ -1,24 +1,21 @@ | ||
{ | ||
"files.insertFinalNewline": true, | ||
"editor.tabSize": 2, | ||
"editor.insertSpaces": true, | ||
"editor.detectIndentation": false, | ||
"typescript.tsdk": "node_modules/typescript/lib", | ||
"editor.formatOnSave": false, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": "explicit" | ||
}, | ||
"cSpell.words": [ | ||
"Consts", | ||
"Emoto", | ||
"gradlew", | ||
"grayscale", | ||
"mitsuharu", | ||
"podspec", | ||
"pressable", | ||
"sunmi", | ||
"typecheck", | ||
"Woyou" | ||
], | ||
} | ||
|
||
"files.insertFinalNewline": true, | ||
"editor.tabSize": 2, | ||
"editor.insertSpaces": true, | ||
"editor.detectIndentation": false, | ||
"typescript.tsdk": "node_modules/typescript/lib", | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": true, | ||
"cSpell.words": [ | ||
"Consts", | ||
"Emoto", | ||
"gradlew", | ||
"grayscale", | ||
"mitsuharu", | ||
"podspec", | ||
"pressable", | ||
"sunmi", | ||
"typecheck", | ||
"Woyou" | ||
] | ||
} |
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
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
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
Oops, something went wrong.