Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency lib #69

Merged
merged 1 commit into from
Jul 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/workflows/label_export.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Export label

on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
push:
paths:
- '.github/workflows/label_export.yml'
- ".github/workflows/label_export.yml"
label:
types: [created, edited, deleted]
workflow_dispatch:
Expand Down Expand Up @@ -34,7 +33,7 @@ jobs:
ref: main
- uses: actions/setup-node@v3
with:
cache: 'yarn'
cache: "yarn"
- run: yarn install
- uses: actions/download-artifact@v3
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/label_sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ name: Sync labels

on:
push:
branches:
- main
paths:
- '.github/labels.yaml'
- ".github/labels.yaml"
- ".github/workflows/label_sync.yml"
workflow_dispatch:

permissions:
Expand All @@ -23,3 +22,4 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
config-file: .github/labels.yaml
delete-other-labels: true
dry-run: ${{ github.ref != 'refs/heads/main' }}
5 changes: 4 additions & 1 deletion .github/workflows/qiita_publish_articles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches:
- main
paths:
- "qiita/**"
- ".github/workflows/qiita_publish_articles.yml"
workflow_dispatch:

permissions:
Expand Down Expand Up @@ -31,7 +34,7 @@ jobs:
ref: main
- uses: actions/setup-node@v3
with:
cache: 'yarn'
cache: "yarn"
- run: yarn install
- run: yarn workspace qiita publish:all
env:
Expand Down
26 changes: 9 additions & 17 deletions .github/workflows/test.yml → .github/workflows/qiita_test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
name: Test
name: Qiita - Test

on:
push:
paths:
- "qiita/**"
- ".github/workflows/qiita_test.yml"

permissions:
contents: read
Expand All @@ -24,13 +27,13 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: 'yarn'
cache: "yarn"
- run: yarn install
- run: yarn run textlint
- run: yarn run textlint:codecov
- run: yarn workspace qiita textlint:codecov
- uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- run: yarn workspace qiita textlint

prettier:
runs-on: ubuntu-latest
Expand All @@ -39,17 +42,6 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: 'yarn'
cache: "yarn"
- run: yarn install
- run: yarn run prettier

label_sync:
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- uses: actions/checkout@v3
- uses: EndBug/label-sync@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
config-file: .github/labels.yaml
dry-run: true
- run: yarn workspace qiita prettier
30 changes: 4 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,6 @@
"version": "0.1.0",
"main": "index.js",
"scripts": {
"format:": "run-s prettier textlint",
"format:fix": "run-s prettier:fix textlint:fix",
"prettier": "prettier --check .",
"prettier:fix": "prettier --write .",
"textlint": "textlint --config .textlintrc.json *",
"textlint:fix": "textlint --config .textlintrc.json --fix *",
"textlint:codecov": "textlint --config .textlintrc.json -f codecov -o tmp/codecov.json *",
"prepare": "husky install",
"lint-staged": "lint-staged"
},
Expand All @@ -29,31 +22,16 @@
"qiita"
],
"devDependencies": {
"@textlint-ja/textlint-rule-no-synonyms": "^1.3.0",
"codecov.io": "^0.1.6",
"husky": "^8.0.3",
"lint-staged": "^13.2.3",
"npm-run-all": "^4.1.5",
"prettier": "^3.0.0",
"sudachi-synonyms-dictionary": "^12.0.0",
"textlint": "^13.3.3",
"textlint-filter-rule-comments": "^1.2.2",
"textlint-formatter-codecov": "^1.0.2",
"textlint-rule-aws-service-name": "^1.4.0",
"textlint-rule-no-mixed-zenkaku-and-hankaku-alphabet": "^1.0.1",
"textlint-rule-no-todo": "^2.0.1",
"textlint-rule-period-in-list-item": "^1.0.1"
},
"prettier": {
"singleQuote": true
"lint-staged": "^13.2.3"
},
"lint-staged": {
"**/*": [
"prettier --write --ignore-unknown"
"yarn workspaces run prettier --write --ignore-unknown"
],
"*.md": [
"textlint --config .textlintrc.json --fix",
"textlint --config .textlintrc.json"
"yarn workspaces run textlint --config .textlintrc.json --fix",
"yarn workspaces run textlint --config .textlintrc.json"
]
}
}
28 changes: 27 additions & 1 deletion qiita/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,36 @@
"preview": "qiita preview",
"publish": "qiita publish",
"publish:all": "qiita publish --all",
"format": "run-s prettier textlint",
"format:fix": "run-s prettier:fix textlint:fix",
"prettier": "prettier --check .",
"prettier:fix": "prettier --write .",
"textlint": "textlint --config .textlintrc.json *",
"textlint:fix": "textlint --config .textlintrc.json --fix *",
"textlint:codecov": "textlint --config .textlintrc.json -f codecov -o tmp/codecov.json *",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "Yuta Mizui <[email protected]>",
"license": "MIT",
"dependencies": {
"@qiita/qiita-cli": "^0.4.0"
},
"devDependencies": {}
"devDependencies": {
"@textlint-ja/textlint-rule-no-synonyms": "^1.3.0",
"codecov.io": "^0.1.6",
"npm-run-all": "^4.1.5",
"prettier": "^3.0.0",
"sudachi-synonyms-dictionary": "^12.0.0",
"textlint": "^13.3.3",
"textlint-filter-rule-comments": "^1.2.2",
"textlint-formatter-codecov": "^1.0.2",
"textlint-rule-aws-service-name": "^1.4.0",
"textlint-rule-no-mixed-zenkaku-and-hankaku-alphabet": "^1.0.1",
"textlint-rule-no-todo": "^2.0.1",
"textlint-rule-period-in-list-item": "^1.0.1"
},
"prettier": {
"singleQuote": true
}
}
Loading