@wishket/eslint-config-wishket 0.2.0 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/.changeset/config.json +2 -2
  2. package/.changeset/force-publish.md +5 -0
  3. package/.github/CODEOWNERS +1 -0
  4. package/.github/ISSUE_TEMPLATE/bug.md +44 -0
  5. package/.github/ISSUE_TEMPLATE/feature_request.md +29 -0
  6. package/.github/pull_request_template.md +36 -0
  7. package/.github/release-drafter.yml +49 -0
  8. package/.github/workflows/eslint-config-wishket-canary.yml +78 -0
  9. package/.github/workflows/eslint-config-wishket-dev.yml +77 -0
  10. package/.github/workflows/eslint-config-wishket-release.yml +62 -0
  11. package/.github/workflows/release-drafter.yml +16 -0
  12. package/.github/workflows/todo-bot.yml +19 -0
  13. package/.pnp.cjs +12162 -0
  14. package/.pnp.loader.mjs +2090 -0
  15. package/.yarn/install-state.gz +0 -0
  16. package/.yarn/releases/yarn-4.0.2.cjs +893 -0
  17. package/.yarn/unplugged/open-npm-9.1.0-d104a17ec5/node_modules/open/.ready +0 -0
  18. package/.yarn/unplugged/open-npm-9.1.0-d104a17ec5/node_modules/open/index.d.ts +157 -0
  19. package/.yarn/unplugged/open-npm-9.1.0-d104a17ec5/node_modules/open/index.js +361 -0
  20. package/.yarn/unplugged/open-npm-9.1.0-d104a17ec5/node_modules/open/license +9 -0
  21. package/.yarn/unplugged/open-npm-9.1.0-d104a17ec5/node_modules/open/package.json +67 -0
  22. package/.yarn/unplugged/open-npm-9.1.0-d104a17ec5/node_modules/open/readme.md +182 -0
  23. package/.yarn/unplugged/open-npm-9.1.0-d104a17ec5/node_modules/open/xdg-open +1066 -0
  24. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/.ready +0 -0
  25. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/LICENSE +5024 -0
  26. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/README.md +109 -0
  27. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/bin/prettier.cjs +68 -0
  28. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/doc.d.ts +243 -0
  29. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/doc.js +1328 -0
  30. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/doc.mjs +1300 -0
  31. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/index.cjs +648 -0
  32. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/index.d.ts +923 -0
  33. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/index.mjs +24578 -0
  34. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/internal/cli.mjs +7287 -0
  35. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/package.json +198 -0
  36. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/plugins/acorn.d.ts +6 -0
  37. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/plugins/acorn.js +13 -0
  38. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/plugins/acorn.mjs +13 -0
  39. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/plugins/angular.d.ts +8 -0
  40. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/plugins/angular.js +1 -0
  41. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/plugins/angular.mjs +1 -0
  42. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/plugins/babel.d.ts +17 -0
  43. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/plugins/babel.js +16 -0
  44. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/plugins/babel.mjs +16 -0
  45. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/plugins/estree.d.ts +1 -0
  46. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/plugins/estree.js +35 -0
  47. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/plugins/estree.mjs +35 -0
  48. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/plugins/flow.d.ts +5 -0
  49. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/plugins/flow.js +21 -0
  50. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/plugins/flow.mjs +21 -0
  51. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/plugins/glimmer.d.ts +5 -0
  52. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/plugins/glimmer.js +30 -0
  53. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/plugins/glimmer.mjs +30 -0
  54. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/plugins/graphql.d.ts +5 -0
  55. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/plugins/graphql.js +29 -0
  56. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/plugins/graphql.mjs +29 -0
  57. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/plugins/html.d.ts +8 -0
  58. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/plugins/html.js +19 -0
  59. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/plugins/html.mjs +19 -0
  60. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/plugins/markdown.d.ts +7 -0
  61. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/plugins/markdown.js +59 -0
  62. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/plugins/markdown.mjs +59 -0
  63. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/plugins/meriyah.d.ts +5 -0
  64. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/plugins/meriyah.js +5 -0
  65. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/plugins/meriyah.mjs +5 -0
  66. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/plugins/postcss.d.ts +7 -0
  67. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/plugins/postcss.js +52 -0
  68. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/plugins/postcss.mjs +52 -0
  69. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/plugins/typescript.d.ts +5 -0
  70. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/plugins/typescript.js +25 -0
  71. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/plugins/typescript.mjs +25 -0
  72. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/plugins/yaml.d.ts +5 -0
  73. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/plugins/yaml.js +161 -0
  74. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/plugins/yaml.mjs +161 -0
  75. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/standalone.d.ts +33 -0
  76. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/standalone.js +34 -0
  77. package/.yarn/unplugged/prettier-npm-3.1.1-072c31ec21/node_modules/prettier/standalone.mjs +34 -0
  78. package/.yarn/unplugged/term-size-npm-2.2.1-77ce7141d0/node_modules/term-size/.ready +0 -0
  79. package/.yarn/unplugged/term-size-npm-2.2.1-77ce7141d0/node_modules/term-size/index.d.ts +21 -0
  80. package/.yarn/unplugged/term-size-npm-2.2.1-77ce7141d0/node_modules/term-size/index.js +72 -0
  81. package/.yarn/unplugged/term-size-npm-2.2.1-77ce7141d0/node_modules/term-size/license +9 -0
  82. package/.yarn/unplugged/term-size-npm-2.2.1-77ce7141d0/node_modules/term-size/package.json +43 -0
  83. package/.yarn/unplugged/term-size-npm-2.2.1-77ce7141d0/node_modules/term-size/readme.md +48 -0
  84. package/.yarn/unplugged/term-size-npm-2.2.1-77ce7141d0/node_modules/term-size/vendor/macos/term-size +0 -0
  85. package/.yarn/unplugged/term-size-npm-2.2.1-77ce7141d0/node_modules/term-size/vendor/windows/term-size.exe +0 -0
  86. package/.yarnrc.yml +1 -0
  87. package/CHANGELOG.md +9 -3
  88. package/package.json +8 -2
  89. package/.changeset/poor-brooms-warn.md +0 -5
  90. /package/{index.js → src/index.js} +0 -0
  91. /package/{react.js → src/react.js} +0 -0
  92. /package/{typescript.js → src/typescript.js} +0 -0
@@ -2,11 +2,11 @@
2
2
  "$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json",
3
3
  "changelog": [
4
4
  "@changesets/changelog-github",
5
- { "repo": "wishket/frontend-libraries" }
5
+ { "repo": "wishket/eslint-config-wishket" }
6
6
  ],
7
7
  "commit": true,
8
8
  "linked": [],
9
- "access": "public",
9
+ "access": "restricted",
10
10
  "baseBranch": "master",
11
11
  "updateInternalDependencies": "patch",
12
12
  "ignore": []
@@ -0,0 +1,5 @@
1
+ ---
2
+ '@wishket/eslint-config-wishket': patch
3
+ ---
4
+
5
+ Publish with tag 0.2.7
@@ -0,0 +1 @@
1
+ * @wishket/frontend
@@ -0,0 +1,44 @@
1
+ ---
2
+ name: 버그 이슈
3
+ about: 버그에 대한 티켓을 생성합니다.
4
+ title: ''
5
+ labels: 'bug'
6
+ ---
7
+
8
+ ## 버그에 대한 내용
9
+
10
+ 어떤 버그인지 기대 동작과 현상에 대해 작성합니다.
11
+
12
+ - ex. 등록 버튼 클릭 시 서버 요청 에러가 발생하고 결과에 대한 팝업이 노출되지 않음
13
+
14
+ ## To reproduce
15
+
16
+ 버그 재현 방법에 대해 작성합니다.
17
+
18
+ - ex.
19
+ 1. <https://example.com> 접속
20
+ 2. 계정 로그인
21
+ 3. <https://example.com/form> 접속
22
+ 4. form 작성
23
+ 5. '등록' 버튼 클릭
24
+
25
+ ## 기대 현상
26
+
27
+ 예상한 상황에 대한 명확하고 간결한 설명입니다.
28
+
29
+ - ex. 등록 버튼 클릭 시 서버 요청 및 응답 받아 해당 결과에 대한 팝업 노출
30
+
31
+ ## Screenshots
32
+
33
+ 버그를 설명하는데 도움이 되는 스크린샷을 추가합니다.
34
+
35
+ ### 발생 환경
36
+
37
+ - Device: [e.g. iPhone6]
38
+ - OS: [e.g. iOS]
39
+ - Browser [e.g. chrome, safari]
40
+ - Version [e.g. 22]
41
+
42
+ ### Additional context
43
+
44
+ 추가적인 컨텍스트를 작성합니다.
@@ -0,0 +1,29 @@
1
+ ---
2
+ name: 기능 변경/추가
3
+ about: 제품에 추가할 기능의 변경 또는 추가에 대한 티켓을 생성합니다.
4
+ title: ''
5
+ labels: 'feat'
6
+ ---
7
+
8
+ ## 기능에 대한 내용
9
+
10
+ 어떤 기능을 추가/변경 하는지 기대 동작과 현상에 대해 작성합니다.
11
+
12
+ - ex. 사용자 프로필 이미지 변경 기능 추가
13
+
14
+ ## 계획 / 설계
15
+
16
+ 기능을 구현하기 위한 계획 또는 설계를 작성합니다.
17
+
18
+ - ex.
19
+ - 이미지 변경 버튼 UI 추가
20
+ - 이미지 변경 버튼 클릭 시 이미지 변경 모달 노출
21
+ - 이미지 변경 모달에서 이미지 변경 후 저장 버튼 클릭 시 서버 요청
22
+ - 서버 요청 성공 시 성공 모달 노출
23
+
24
+ ## 추가 컨텍스트
25
+
26
+ 추가적인 컨텍스트를 작성합니다.
27
+
28
+ - 관련된 slack, trello, confluence, github issue, github pr 등의 링크
29
+ - 구현에 참조할 만한 내용
@@ -0,0 +1,36 @@
1
+ ### Short description
2
+
3
+ *내용을 간단히 알 수 있도록 한줄로 요약하여 작성합니다.*
4
+
5
+ ### Proposed changes
6
+
7
+ *변경 사항에 대해 리뷰어가 이해할 수 있도록 상세히 작성합니다.*
8
+
9
+ - 변경 사항 1
10
+ - 변경 사항 2
11
+ - 변경 사항 3
12
+
13
+ ### How to test
14
+
15
+ *리뷰어가 재현을 할 수 있는 방법에 대해 작성합니다.*
16
+
17
+ ### Screenshots
18
+
19
+ *UI의 변경 사항이나 이미지/비디오를 통해 설명을 보완할 수 있는 내용에 대해 작성합니다.*
20
+
21
+ |AS-IS|TO-BE|
22
+ |--|--|
23
+ |변경 전|변경 후|
24
+
25
+ |구분|내용|
26
+ |--|--|
27
+ |타이틀|스크린샷|
28
+
29
+ ### Reference
30
+
31
+ *해당 작업을 하게 된 레퍼런스에 대해 작성합니다*
32
+ *라벨은 github 자동 이슈 링킹에 대한 예약어이므로 변경하지 않습니다.*
33
+
34
+ fix #issue-number_
35
+ resolve #issue-number_
36
+ close #issue-number_
@@ -0,0 +1,49 @@
1
+ name-template: 'v$NEXT_PATCH_VERSION 🌈'
2
+ tag-template: 'v$NEXT_PATCH_VERSION'
3
+ categories:
4
+ - title: '🎉 User stories'
5
+ labels:
6
+ - 'epic'
7
+ - 'Epic'
8
+ - 'user story'
9
+ - 'User story'
10
+ - 'user-story'
11
+ - title: '🚀 Features'
12
+ labels:
13
+ - 'feat'
14
+ - 'feature'
15
+ - 'Feature'
16
+ - 'enhancement'
17
+ - 'Enhancement'
18
+ - title: '🐛 Bug Fixes'
19
+ labels:
20
+ - 'fix'
21
+ - 'Fix'
22
+ - 'bugfix'
23
+ - 'bug'
24
+ - 'Bug'
25
+ - 'hotfix'
26
+ - title: '🦾 Refactoring'
27
+ labels:
28
+ - 'refactor'
29
+ - 'Refactor'
30
+ - title: '📚 Documentation'
31
+ labels:
32
+ - 'documentation'
33
+ - 'Documentation'
34
+ - title: '🧰 Maintenance'
35
+ label:
36
+ - 'chore'
37
+ - 'Chore'
38
+ - 'ci'
39
+ - 'CI'
40
+ - 'build'
41
+ - 'Build'
42
+ - title: '🛠 Dependencies'
43
+ label:
44
+ - 'dependencies'
45
+ - 'Dependencies'
46
+ change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
47
+ template: |
48
+ ## Changes
49
+ $CHANGES
@@ -0,0 +1,78 @@
1
+ name: eslint-config-wishket-canary
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ paths:
8
+ - '**'
9
+ - '.github/workflows/eslint-config-wishket-canary.yml'
10
+
11
+ env:
12
+ NODE_OPTIONS: --max_old_space_size=4096
13
+
14
+ jobs:
15
+ install-dependencies:
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - name: Checkout code
19
+ uses: actions/checkout@v3
20
+
21
+ - name: Setup node.js
22
+ uses: actions/setup-node@v3
23
+ with:
24
+ node-version: '18'
25
+
26
+ - name: Install dependencies
27
+ if: steps.cache.outputs.cache-hit != 'true'
28
+ run: yarn install --frozen-lockfile
29
+
30
+
31
+ publish-canary:
32
+ runs-on: ubuntu-latest
33
+ needs: [install-dependencies]
34
+ steps:
35
+ - name: Checkout code
36
+ uses: actions/checkout@v3
37
+
38
+ - name: Setup node.js
39
+ uses: actions/setup-node@v3
40
+ with:
41
+ node-version: '18'
42
+
43
+ - name: Restore dependencies from cache
44
+ id: cache
45
+ uses: actions/cache@v3
46
+ with:
47
+ path: ./node_modules
48
+ key: ${{ runner.os }}-yarn-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}
49
+ restore-keys: |
50
+ ${{ runner.os }}-yarn-
51
+ - name: Install dependencies
52
+ if: steps.cache.outputs.cache-hit != 'true'
53
+ run: yarn install --frozen-lockfile
54
+
55
+ - name: Create .npmrc
56
+ run: |
57
+ cat << EOF > "$HOME/.npmrc"
58
+ //registry.npmjs.org/:_authToken=$NPM_TOKEN
59
+ EOF
60
+ env:
61
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
62
+
63
+ - name: Publish canary
64
+ run: |
65
+ cat <<< "$( jq '.version = "0.0.0"' package.json )" > package.json
66
+ echo -e "---\n'@wishket/eslint-config-wishket': patch\n---\n\nPublish canary" > .changeset/force-publish.md
67
+ yarn changeset version --snapshot
68
+ yarn changeset publish --tag canary
69
+ env:
70
+ GITHUB_TOKEN: ${{ secrets.PJW_GITHUB_TOKEN }}
71
+
72
+ - name: Output canary version number
73
+ run: |
74
+ name=$(jq -r .name package.json)
75
+ version=$(jq -r .version package.json)
76
+ yarn dlx action-status --context "Published $name" --state success --description $version --url "https://unpkg.com/$name@$version/"
77
+ env:
78
+ GITHUB_TOKEN: ${{ secrets.PJW_GITHUB_TOKEN }}
@@ -0,0 +1,77 @@
1
+ name: eslint-config-wishket-dev
2
+
3
+ on:
4
+ push:
5
+ branches-ignore:
6
+ - master
7
+ paths:
8
+ - '**'
9
+ - '.github/workflows/eslint-config-wishket-dev.yml'
10
+
11
+ env:
12
+ NODE_OPTIONS: --max_old_space_size=4096
13
+
14
+ jobs:
15
+ install-dependencies:
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - name: Checkout code
19
+ uses: actions/checkout@v3
20
+
21
+ - name: Setup node.js
22
+ uses: actions/setup-node@v3
23
+ with:
24
+ node-version: '18'
25
+
26
+ - name: Install dependencies
27
+ if: steps.cache.outputs.cache-hit != 'true'
28
+ run: yarn install --frozen-lockfile
29
+
30
+ publish-dev:
31
+ runs-on: ubuntu-latest
32
+ needs: [install-dependencies]
33
+ steps:
34
+ - name: Checkout code
35
+ uses: actions/checkout@v3
36
+
37
+ - name: Setup node.js
38
+ uses: actions/setup-node@v3
39
+ with:
40
+ node-version: '18'
41
+
42
+ - name: Restore dependencies from cache
43
+ id: cache
44
+ uses: actions/cache@v3
45
+ with:
46
+ path: ./node_modules
47
+ key: ${{ runner.os }}-yarn-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}
48
+ restore-keys: |
49
+ ${{ runner.os }}-yarn-
50
+ - name: Install dependencies
51
+ if: steps.cache.outputs.cache-hit != 'true'
52
+ run: yarn install --frozen-lockfile
53
+
54
+ - name: Create .npmrc
55
+ run: |
56
+ cat << EOF > "$HOME/.npmrc"
57
+ //registry.npmjs.org/:_authToken=$NPM_TOKEN
58
+ EOF
59
+ env:
60
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
61
+
62
+ - name: Publish dev
63
+ run: |
64
+ cat <<< "$( jq '.version = "0.0.0"' package.json )" > package.json
65
+ echo -e "---\n'@wishket/eslint-config-wishket': patch\n---\n\nPublish dev" > .changeset/force-publish.md
66
+ yarn changeset version --snapshot
67
+ yarn changeset publish --tag dev
68
+ env:
69
+ GITHUB_TOKEN: ${{ secrets.PJW_GITHUB_TOKEN }}
70
+
71
+ - name: Output dev version number
72
+ run: |
73
+ name=$(jq -r .name package.json)
74
+ version=$(jq -r .version package.json)
75
+ yarn dlx action-status --context "Published $name" --state success --description $version --url "https://unpkg.com/$name@$version/"
76
+ env:
77
+ GITHUB_TOKEN: ${{ secrets.PJW_GITHUB_TOKEN }}
@@ -0,0 +1,62 @@
1
+ name: eslint-config-wishket-release
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ env:
8
+ NODE_OPTIONS: --max_old_space_size=4096
9
+
10
+ jobs:
11
+ publish:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - name: Checkout code
15
+ uses: actions/checkout@v3
16
+
17
+ - name: Setup node.js
18
+ uses: actions/setup-node@v3
19
+ with:
20
+ node-version: '18'
21
+
22
+ - name: Restore dependencies from cache
23
+ id: cache
24
+ uses: actions/cache@v3
25
+ with:
26
+ path: ./node_modules
27
+ key: ${{ runner.os }}-yarn-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}
28
+ restore-keys: |
29
+ ${{ runner.os }}-yarn-
30
+ - name: Install dependencies
31
+ if: steps.cache.outputs.cache-hit != 'true'
32
+ run: yarn install --frozen-lockfile
33
+
34
+ - name: Create .npmrc
35
+ run: |
36
+ cat << EOF > "$HOME/.npmrc"
37
+ //registry.npmjs.org/:_authToken=$NPM_TOKEN
38
+ EOF
39
+ env:
40
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
41
+
42
+ - name: Publish
43
+ run: |
44
+ TAG_NAME=${GITHUB_REF#refs/tags/}
45
+ TAG_NAME=${TAG_NAME#v}
46
+ echo "TAG_NAME=$TAG_NAME"
47
+ cat <<< "$( jq ".version = \"$TAG_NAME\"" package.json )" > package.json
48
+ cat package.json
49
+ echo -e "---\n'@wishket/eslint-config-wishket': patch\n---\n\nPublish with tag $TAG_NAME" > .changeset/force-publish.md
50
+ yarn changeset publish
51
+ env:
52
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
53
+ GITHUB_TOKEN: ${{ secrets.PJW_GITHUB_TOKEN }}
54
+
55
+
56
+ - name: Output version number
57
+ run: |
58
+ name=$(jq -r .name package.json)
59
+ version=$(jq -r .version package.json)
60
+ yarn dlx action-status --context "Published $name" --state success --description $version --url "https://unpkg.com/$name@$version/"
61
+ env:
62
+ GITHUB_TOKEN: ${{ secrets.PJW_GITHUB_TOKEN }}
@@ -0,0 +1,16 @@
1
+ name: Release Drafter
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+
8
+ jobs:
9
+ update_release_draft:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: release-drafter/release-drafter@v5
13
+ env:
14
+ GITHUB_TOKEN: ${{ secrets.PJW_GITHUB_TOKEN }}
15
+ with:
16
+ config-name: release-drafter.yml
@@ -0,0 +1,19 @@
1
+ name: Convert TODOs to Issues
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+
8
+ jobs:
9
+ convert_todos:
10
+ runs-on: ubuntu-latest
11
+
12
+ steps:
13
+ - name: Checkout repository
14
+ uses: actions/checkout@v2
15
+
16
+ - name: Convert TODOs to Issues
17
+ uses: alstr/todo-to-issue-action@master
18
+ with:
19
+ github_token: ${{ secrets.PJW_GITHUB_TOKEN }}