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 ADDED
@@ -0,0 +1,10 @@
1
+ root = true
2
+
3
+ [*]
4
+ end_of_line = lf
5
+ insert_final_newline = true
6
+
7
+ [*.{js,json,yml}]
8
+ charset = utf-8
9
+ indent_style = space
10
+ indent_size = 2
package/.gitattributes ADDED
@@ -0,0 +1,4 @@
1
+ /.yarn/** linguist-vendored
2
+ /.yarn/releases/* binary
3
+ /.yarn/plugins/**/* binary
4
+ /.pnp.* binary linguist-generated
@@ -9,15 +9,24 @@ jobs:
9
9
  runs-on: ubuntu-latest
10
10
  steps:
11
11
  - name: Checkout
12
- uses: actions/checkout@v2
12
+ uses: actions/checkout@v3
13
13
  - name: Setup Node
14
- uses: actions/setup-node@v2
14
+ uses: actions/setup-node@v3
15
15
  with:
16
- node-version: '16.16.0'
16
+ node-version: '20.0.0'
17
17
  registry-url: 'https://registry.npmjs.org'
18
- - name: Install dependencies and build 🔧
19
- run: npm install && npm run build
20
- - name: Publish package on NPM 📦
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
- - master
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
- dependencies:
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
- - uses: actions/checkout@v2
110
- - name: Use Node.js ${{ matrix.node-version }}
111
- uses: actions/setup-node@v2
112
- with:
113
- node-version: ${{ env.node-version }}
114
- - name: Restore node_modules cache
115
- uses: actions/cache@v2
116
- id: node-modules-cache
117
- with:
118
- path: ./node_modules
119
- key: ${{ runner.os }}-node-modules-${{ env.cache_version }}-${{ hashFiles('**/package-lock.json') }}
120
- - name: Build app
121
- run: npm run build
122
- test_unit:
123
- name: Unit Tests
124
- needs:
125
- - build
126
- - lint_scripts
127
- - lint_format
128
- - lint_types
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 16.16.0
1
+ nodejs 20.0.0