@wishket/eslint-config-wishket 0.1.2 → 0.2.5

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.
@@ -52,14 +52,27 @@ jobs:
52
52
  if: steps.cache.outputs.cache-hit != 'true'
53
53
  run: yarn install --frozen-lockfile
54
54
 
55
- - name: Open release PR or publish package
56
- uses: changesets/action@v1
57
- with:
58
- title: Release
59
- commit: 'chore: version packages'
60
- version: yarn changeset version
61
- publish: yarn changeset publish --tag canary
55
+ - name: Create .npmrc
56
+ run: |
57
+ cat << EOF > "$HOME/.npmrc"
58
+ //registry.npmjs.org/:_authToken=$NPM_TOKEN
59
+ EOF
62
60
  env:
63
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64
61
  NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
65
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,63 @@
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 version
51
+ yarn changeset publish
52
+ env:
53
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
54
+ GITHUB_TOKEN: ${{ secrets.PJW_GITHUB_TOKEN }}
55
+
56
+
57
+ - name: Output version number
58
+ run: |
59
+ name=$(jq -r .name package.json)
60
+ version=$(jq -r .version package.json)
61
+ yarn dlx action-status --context "Published $name" --state success --description $version --url "https://unpkg.com/$name@$version/"
62
+ env:
63
+ GITHUB_TOKEN: ${{ secrets.PJW_GITHUB_TOKEN }}
Binary file
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @wishket/eslint-config-wishket
2
2
 
3
+ ## 0.2.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Publish with tag 0.2.4
8
+
3
9
  ## 0.1.2
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wishket/eslint-config-wishket",
3
- "version": "0.1.2",
3
+ "version": "0.2.5",
4
4
  "description": "Wishket's eslint config",
5
5
  "main": "index.js",
6
6
  "author": "wishket-pjw <pjw@wishket.com> (https://github.com/wishket-pjw)",