yata-fetch 2.0.2 → 2.1.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.
- package/.editorconfig +10 -0
- package/.gitattributes +4 -0
- package/.github/workflows/publish.yaml +15 -6
- package/.github/workflows/test.yaml +23 -134
- package/.tool-versions +1 -1
- package/.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs +541 -0
- package/.yarn/plugins/@yarnpkg/plugin-version.cjs +550 -0
- package/.yarn/releases/yarn-3.5.0.cjs +873 -0
- package/.yarn/versions/32a76712.yml +0 -0
- package/.yarn/versions/8de51e3c.yml +0 -0
- package/.yarn/versions/b754bf0d.yml +0 -0
- package/.yarnrc.yml +9 -0
- package/README.md +14 -10
- package/bin/yata-fetch.js +0 -0
- package/package.json +12 -16
- package/.husky/commit-msg +0 -4
- package/commitlint.config.cjs +0 -1
- package/package-lock.json +0 -8563
package/.editorconfig
ADDED
package/.gitattributes
ADDED
|
@@ -9,15 +9,24 @@ jobs:
|
|
|
9
9
|
runs-on: ubuntu-latest
|
|
10
10
|
steps:
|
|
11
11
|
- name: Checkout
|
|
12
|
-
uses: actions/checkout@
|
|
12
|
+
uses: actions/checkout@v3
|
|
13
13
|
- name: Setup Node
|
|
14
|
-
uses: actions/setup-node@
|
|
14
|
+
uses: actions/setup-node@v3
|
|
15
15
|
with:
|
|
16
|
-
node-version: '
|
|
16
|
+
node-version: '20.0.0'
|
|
17
17
|
registry-url: 'https://registry.npmjs.org'
|
|
18
|
-
- name: Install
|
|
19
|
-
run:
|
|
20
|
-
- name:
|
|
18
|
+
- name: Install
|
|
19
|
+
run: yarn install
|
|
20
|
+
- name: Build 🔧
|
|
21
|
+
run: yarn build
|
|
22
|
+
- name: Configure npm
|
|
23
|
+
run: |
|
|
24
|
+
cat << EOF > "$HOME/.npmrc"
|
|
25
|
+
//registry.npmjs.org/:_authToken=$NPM_TOKEN
|
|
26
|
+
EOF
|
|
27
|
+
env:
|
|
28
|
+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
29
|
+
- name: Publish 📦
|
|
21
30
|
run: npm publish
|
|
22
31
|
env:
|
|
23
32
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
@@ -3,144 +3,33 @@ name: Test
|
|
|
3
3
|
on:
|
|
4
4
|
pull_request:
|
|
5
5
|
branches:
|
|
6
|
-
-
|
|
6
|
+
- '*'
|
|
7
7
|
push:
|
|
8
8
|
branches:
|
|
9
9
|
- master
|
|
10
10
|
|
|
11
|
-
env:
|
|
12
|
-
cache_version: v1
|
|
13
|
-
node-version: 16.16.0
|
|
14
|
-
|
|
15
11
|
jobs:
|
|
16
|
-
|
|
17
|
-
name: Install dependencies
|
|
18
|
-
runs-on: ubuntu-latest
|
|
19
|
-
steps:
|
|
20
|
-
- uses: actions/checkout@v2
|
|
21
|
-
- name: Use Node.js ${{ matrix.node-version }}
|
|
22
|
-
uses: actions/setup-node@v2
|
|
23
|
-
with:
|
|
24
|
-
node-version: ${{ env.node-version }}
|
|
25
|
-
- name: Set lockfile_hash
|
|
26
|
-
run: echo "lockfile_hash=${{ hashFiles('**/package-lock.json') }}" >> $GITHUB_ENV
|
|
27
|
-
- name: Restore node_modules cache
|
|
28
|
-
uses: actions/cache@v2
|
|
29
|
-
id: node-modules-cache
|
|
30
|
-
with:
|
|
31
|
-
path: ./node_modules
|
|
32
|
-
key: ${{ runner.os }}-node-modules-${{ env.cache_version }}-${{ env.lockfile_hash }}
|
|
33
|
-
- name: Get npm cache directory path
|
|
34
|
-
if: steps.node-modules-cache.outputs.cache-hit != 'true'
|
|
35
|
-
id: npm-cache-dir-path
|
|
36
|
-
run: echo "::set-output name=dir::~/.npm/_cacache"
|
|
37
|
-
- name: Restore npm cache
|
|
38
|
-
if: steps.node-modules-cache.outputs.cache-hit != 'true'
|
|
39
|
-
uses: actions/cache@v2
|
|
40
|
-
id: npm-cache
|
|
41
|
-
with:
|
|
42
|
-
path: ${{ steps.npm-cache-dir-path.outputs.dir }}
|
|
43
|
-
key: ${{ runner.os }}-npm-${{ env.cache_version }}-${{ env.lockfile_hash }}
|
|
44
|
-
restore-keys: ${{ runner.os }}-npm-${{ env.cache_version }}-
|
|
45
|
-
- name: Install dependencies
|
|
46
|
-
if: steps.node-modules-cache.outputs.cache-hit != 'true'
|
|
47
|
-
run: npm ci
|
|
48
|
-
lint_scripts:
|
|
49
|
-
name: Lint JavaScript
|
|
50
|
-
needs: dependencies
|
|
51
|
-
runs-on: ubuntu-latest
|
|
52
|
-
steps:
|
|
53
|
-
- uses: actions/checkout@v2
|
|
54
|
-
- name: Use Node.js ${{ matrix.node-version }}
|
|
55
|
-
uses: actions/setup-node@v2
|
|
56
|
-
with:
|
|
57
|
-
node-version: ${{ env.node-version }}
|
|
58
|
-
- name: Restore node_modules cache
|
|
59
|
-
uses: actions/cache@v2
|
|
60
|
-
id: node-modules-cache
|
|
61
|
-
with:
|
|
62
|
-
path: ./node_modules
|
|
63
|
-
key: ${{ runner.os }}-node-modules-${{ env.cache_version }}-${{ hashFiles('**/package-lock.json') }}
|
|
64
|
-
- name: Lint
|
|
65
|
-
run: npm run lint:eslint
|
|
66
|
-
lint_format:
|
|
67
|
-
name: Lint Formatting
|
|
68
|
-
needs: dependencies
|
|
69
|
-
runs-on: ubuntu-latest
|
|
70
|
-
steps:
|
|
71
|
-
- uses: actions/checkout@v2
|
|
72
|
-
- name: Use Node.js ${{ matrix.node-version }}
|
|
73
|
-
uses: actions/setup-node@v2
|
|
74
|
-
with:
|
|
75
|
-
node-version: ${{ env.node-version }}
|
|
76
|
-
- name: Restore node_modules cache
|
|
77
|
-
uses: actions/cache@v2
|
|
78
|
-
id: node-modules-cache
|
|
79
|
-
with:
|
|
80
|
-
path: ./node_modules
|
|
81
|
-
key: ${{ runner.os }}-node-modules-${{ env.cache_version }}-${{ hashFiles('**/package-lock.json') }}
|
|
82
|
-
- name: Lint format
|
|
83
|
-
run: npm run lint:fmt
|
|
84
|
-
lint_types:
|
|
85
|
-
name: Lint Typings
|
|
86
|
-
needs: dependencies
|
|
87
|
-
runs-on: ubuntu-latest
|
|
88
|
-
steps:
|
|
89
|
-
- uses: actions/checkout@v2
|
|
90
|
-
- name: Use Node.js ${{ matrix.node-version }}
|
|
91
|
-
uses: actions/setup-node@v2
|
|
92
|
-
with:
|
|
93
|
-
node-version: ${{ env.node-version }}
|
|
94
|
-
- name: Restore node_modules cache
|
|
95
|
-
uses: actions/cache@v2
|
|
96
|
-
id: node-modules-cache
|
|
97
|
-
with:
|
|
98
|
-
path: ./node_modules
|
|
99
|
-
key: ${{ runner.os }}-node-modules-${{ env.cache_version }}-${{ hashFiles('**/package-lock.json') }}
|
|
100
|
-
- name: Lint
|
|
101
|
-
run: npm run lint:ts
|
|
102
|
-
build:
|
|
103
|
-
name: Build application
|
|
104
|
-
needs:
|
|
105
|
-
- dependencies
|
|
106
|
-
- lint_types
|
|
12
|
+
build-lint-test:
|
|
107
13
|
runs-on: ubuntu-latest
|
|
14
|
+
|
|
108
15
|
steps:
|
|
109
|
-
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
-
|
|
128
|
-
|
|
129
|
-
runs-on: ubuntu-latest
|
|
130
|
-
continue-on-error: false
|
|
131
|
-
outputs:
|
|
132
|
-
test-results: ${{ steps.status.outputs.test-results }}
|
|
133
|
-
steps:
|
|
134
|
-
- uses: actions/checkout@v2
|
|
135
|
-
- name: Use Node.js ${{ matrix.node-version }}
|
|
136
|
-
uses: actions/setup-node@v2
|
|
137
|
-
with:
|
|
138
|
-
node-version: ${{ env.node-version }}
|
|
139
|
-
- name: Restore node_modules cache
|
|
140
|
-
uses: actions/cache@v2
|
|
141
|
-
id: node-modules-cache
|
|
142
|
-
with:
|
|
143
|
-
path: ./node_modules
|
|
144
|
-
key: ${{ runner.os }}-node-modules-${{ env.cache_version }}-${{ hashFiles('**/package-lock.json') }}
|
|
145
|
-
- name: Run tests
|
|
146
|
-
run: npm run test
|
|
16
|
+
- name: Checkout
|
|
17
|
+
uses: actions/checkout@v3
|
|
18
|
+
|
|
19
|
+
- name: Install
|
|
20
|
+
run: yarn install
|
|
21
|
+
|
|
22
|
+
- name: Lint Scripts
|
|
23
|
+
run: yarn lint:eslint
|
|
24
|
+
|
|
25
|
+
- name: Lint Format
|
|
26
|
+
run: yarn lint:fmt
|
|
27
|
+
|
|
28
|
+
- name: Lint Types
|
|
29
|
+
run: yarn lint:ts
|
|
30
|
+
|
|
31
|
+
- name: Unit Test
|
|
32
|
+
run: yarn test
|
|
33
|
+
|
|
34
|
+
- name: Build
|
|
35
|
+
run: yarn build
|
package/.tool-versions
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
nodejs
|
|
1
|
+
nodejs 20.0.0
|