File tree Expand file tree Collapse file tree 6 files changed +23510
-2
lines changed
Expand file tree Collapse file tree 6 files changed +23510
-2
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [ master ]
6+ pull_request :
7+ branches : [ master ]
8+
9+ jobs :
10+ Job :
11+ name : Node.js
12+ uses : node-modules/github-actions/.github/workflows/node-test.yml@master
13+ with :
14+ os : ' ubuntu-latest'
15+ version : ' 22'
Original file line number Diff line number Diff line change 1+ name : Release
2+ on :
3+ push :
4+ branches : [ master ]
5+
6+ jobs :
7+ release :
8+ name : Node.js
9+ uses : cnpm/github-actions/.github/workflows/node-release.yml@master
10+ secrets :
11+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
12+ GIT_TOKEN : ${{ secrets.GIT_TOKEN }}
Original file line number Diff line number Diff line change 11MIT License
22
3- Copyright (c) 2024 cnpm
3+ Copyright (c) 2024-present cnpm and other contributors.
44
55Permission is hereby granted, free of charge, to any person obtaining a copy
66of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change 11# unpkg-white-list
2- npmmirror 允许开启 unpkg 功能的白名单列表,避免 https://x.com/fengmk2/status/1791498406923215020 类似问题
2+
3+ [ ![ NPM version] ( https://img.shields.io/npm/v/unpkg-white-list.svg?style=flat-square )] ( https://npmjs.org/package/unpkg-white-list )
4+ [ ![ CI] ( https://github.com/cnpm/unpkg-white-list/actions/workflows/node.yml/badge.svg )] ( https://github.com/cnpm/unpkg-white-list/actions/workflows/nodejs.yml )
5+
6+ [ mirror.com] ( https://npmmirror.com ) 允许开启 [ unpkg 功能] ( https://www.yuque.com/egg/cnpm/files ) 的白名单列表,避免 https://x.com/fengmk2/status/1791498406923215020 类似问题
7+
8+ ## 添加白名单方式
9+
10+ 1、直接在线修改 [ package.json] ( https://github.com/cnpm/unpkg-white-list/edit/master/package.json ) 中的 ` allowPackages ` 字段,
11+ 添加你想开启 unpkg 文件同步的 npm 包名和版本号,全量同步版本号可以设置为 ` * ` 。
12+
13+ 以同步 [ urllib] ( https://npmmirror.com/package/urllib ) 为示例,配置如下:
14+
15+ ``` json
16+ "allowPackages" : {
17+ ...
18+ "urllib" : {
19+ "version" : " *"
20+ }
21+ ...
22+ }
23+ ```
24+
25+ 2、修改完成后提交一个 ` Pull Request ` 合并到 master 分支,等待 Review,合并后会自动发布,预计最长 5 分钟后会全网生效。
26+
27+ ## License
28+
29+ [ MIT] ( LICENSE )
30+
31+ <!-- GITCONTRIBUTOR_START -->
32+
33+ ## 贡献者
34+
35+ | [ <img src =" https://avatars.githubusercontent.com/u/156269?v=4 " width =" 100px; " /><br /><sub ><b >fengmk2</b ></sub >] ( https://github.com/fengmk2 ) <br />|
36+ | :---: |
37+
38+
39+ [ git-contributor 说明] ( https://github.com/xudafeng/git-contributor ) ,自动生成时间:` Sat May 18 2024 09:02:24 GMT+0800 ` 。
40+
41+ <!-- GITCONTRIBUTOR_END -->
You can’t perform that action at this time.
0 commit comments