File tree Expand file tree Collapse file tree 15 files changed +875
-0
lines changed Expand file tree Collapse file tree 15 files changed +875
-0
lines changed Original file line number Diff line number Diff line change 1+ github : streamich
Original file line number Diff line number Diff line change 1+ {
2+ "$schema" : " https://docs.renovatebot.com/renovate-schema.json" ,
3+ "extends" : [" config:base" ],
4+ "lockFileMaintenance" : {
5+ "enabled" : true ,
6+ "automerge" : true
7+ },
8+ "rangeStrategy" : " replace" ,
9+ "postUpdateOptions" : [" yarnDedupeHighest" ],
10+ "packageRules" : [
11+ {
12+ "matchUpdateTypes" : [" minor" , " patch" ],
13+ "matchCurrentVersion" : " !/^0/" ,
14+ "automerge" : true
15+ }
16+ ]
17+ }
Original file line number Diff line number Diff line change 1+ name : Node.js CI
2+
3+ on :
4+ push :
5+ branches : [ master ]
6+
7+ jobs :
8+ gh-pages :
9+ runs-on : ubuntu-latest
10+ strategy :
11+ matrix :
12+ node-version : [20.x]
13+ steps :
14+ - uses : actions/checkout@v4
15+ - name : Use Node.js ${{ matrix.node-version }}
16+ uses : actions/setup-node@v4
17+ with :
18+ node-version : ${{ matrix.node-version }}
19+ cache : yarn
20+ - run : yarn install --frozen-lockfile
21+ - run : yarn typedoc
22+ - run : yarn coverage
23+ - run : yarn build:pages
24+ - name : Publish to gh-pages
25+ uses : peaceiris/actions-gh-pages@v3
26+ with :
27+ github_token : ${{ secrets.GITHUB_TOKEN }}
28+ publish_dir : ./gh-pages
Original file line number Diff line number Diff line change 1+ name : Node.js CI
2+
3+ on :
4+ push :
5+ branches : [ master ]
6+
7+ jobs :
8+ mirror :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v4
12+ with :
13+ fetch-depth : 0
14+ - name : Push To Gitlab
15+ env :
16+ token : ${{ secrets.GITLAB_TOKEN }}
17+ run : |
18+ git config user.name "streamich"
19+ git config user.email "[email protected] " 20+ git remote add mirror "https://oauth2:${token}@gitlab.com/streamich/json-random.git"
21+ git push mirror master
Original file line number Diff line number Diff line change 1+ name : Node.js CI
2+
3+ on :
4+ pull_request :
5+ branches : [ master ]
6+
7+ concurrency :
8+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
9+ cancel-in-progress : true
10+
11+ jobs :
12+ unit :
13+ runs-on : ubuntu-latest
14+ strategy :
15+ matrix :
16+ node-version : [20.x]
17+ steps :
18+ - uses : actions/checkout@v4
19+ - name : Use Node.js ${{ matrix.node-version }}
20+ uses : actions/setup-node@v4
21+ with :
22+ node-version : ${{ matrix.node-version }}
23+ cache : yarn
24+ - run : yarn install --frozen-lockfile
25+ - run : yarn test:ci --ci
26+ lint-and-co :
27+ runs-on : ubuntu-latest
28+ strategy :
29+ matrix :
30+ node-version : [20.x]
31+ steps :
32+ - uses : actions/checkout@v4
33+ - name : Use Node.js ${{ matrix.node-version }}
34+ uses : actions/setup-node@v4
35+ with :
36+ node-version : ${{ matrix.node-version }}
37+ cache : yarn
38+ - run : yarn install --frozen-lockfile
39+ - run : yarn build
40+ - run : yarn lint
41+ - run : yarn format
42+ - run : yarn typedoc
Original file line number Diff line number Diff line change 1+ name : Node.js CI
2+
3+ on :
4+ push :
5+ branches : [ master ]
6+
7+ jobs :
8+ release :
9+ if :
10+ ${{ github.event_name == 'push' && (github.event.ref == 'refs/heads/master' || github.event.ref == 'refs/heads/next') }}
11+ runs-on : ubuntu-latest
12+ strategy :
13+ matrix :
14+ node-version : [20.x]
15+ steps :
16+ - uses : actions/checkout@v4
17+ - name : Use Node.js ${{ matrix.node-version }}
18+ uses : actions/setup-node@v4
19+ with :
20+ node-version : ${{ matrix.node-version }}
21+ cache : yarn
22+ - run : yarn install --frozen-lockfile
23+ - run : yarn format
24+ - run : yarn lint
25+ - run : yarn test:ci --ci
26+ - run : yarn build
27+ - name : Semantic Release
28+ uses : cycjimmy/semantic-release-action@v4
29+ env :
30+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1+ # Logs
2+ logs
3+ * .log
4+ npm-debug.log *
5+ yarn-debug.log *
6+ yarn-error.log *
7+ lerna-debug.log *
8+
9+ # Diagnostic reports (https://nodejs.org/api/report.html)
10+ report. [0-9 ]* . [0-9 ]* . [0-9 ]* . [0-9 ]* .json
11+
12+ # Runtime data
13+ pids
14+ * .pid
15+ * .seed
16+ * .pid.lock
17+
18+ # Directory for instrumented libs generated by jscoverage/JSCover
19+ lib-cov
20+
21+ # Coverage directory used by tools like istanbul
22+ coverage
23+ * .lcov
24+
25+ # nyc test coverage
26+ .nyc_output
27+
28+ # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29+ .grunt
30+
31+ # Bower dependency directory (https://bower.io/)
32+ bower_components
33+
34+ # node-waf configuration
35+ .lock-wscript
36+
37+ # Compiled binary addons (https://nodejs.org/api/addons.html)
38+ build /Release
39+
40+ # Dependency directories
41+ node_modules /
42+ jspm_packages /
43+
44+ # Snowpack dependency directory (https://snowpack.dev/)
45+ web_modules /
46+
47+ # TypeScript cache
48+ * .tsbuildinfo
49+
50+ # Optional npm cache directory
51+ .npm
52+
53+ # Optional eslint cache
54+ .eslintcache
55+
56+ # Microbundle cache
57+ .rpt2_cache /
58+ .rts2_cache_cjs /
59+ .rts2_cache_es /
60+ .rts2_cache_umd /
61+
62+ # Optional REPL history
63+ .node_repl_history
64+
65+ # Output of 'npm pack'
66+ * .tgz
67+
68+ # Yarn Integrity file
69+ .yarn-integrity
70+
71+ # dotenv environment variables file
72+ .env
73+ .env.test
74+
75+ # parcel-bundler cache (https://parceljs.org/)
76+ .cache
77+ .parcel-cache
78+
79+ # Next.js build output
80+ .next
81+ out
82+
83+ # Nuxt.js build / generate output
84+ .nuxt
85+ dist
86+
87+ # Gatsby files
88+ .cache /
89+ # Comment in the public line in if your project uses Gatsby and not Next.js
90+ # https://nextjs.org/blog/next-9-1#public-directory-support
91+ # public
92+
93+ # vuepress build output
94+ .vuepress /dist
95+
96+ # Serverless directories
97+ .serverless /
98+
99+ # FuseBox cache
100+ .fusebox /
101+
102+ # DynamoDB Local files
103+ .dynamodb /
104+
105+ # TernJS port file
106+ .tern-port
107+
108+ # Stores VSCode versions used for testing VSCode extensions
109+ .vscode-test
110+ .vscode
111+
112+ # yarn v2
113+ .yarn /cache
114+ .yarn /unplugged
115+ .yarn /build-state.yml
116+ .yarn /install-state.gz
117+ .pnp. *
118+
119+ # Build folders
120+ lib /
121+ es6 /
122+ es2020 /
123+ esm /
124+ typedocs /
125+
126+ .DS_Store
127+ out.bin
128+
129+ /gh-pages /
You can’t perform that action at this time.
0 commit comments