大概是一个技术博客

Probably a technical blog

说明: http或socks5代理自备

配置代理

1
2
3
4
5
# http代理
$ git config --global http.https://github.com.proxy http://127.0.0.1:1080

# socks5代理
$ git config --global http.https://github.com.proxy socks5://127.0.0.1:1080

取消代理(还原)

1
$ git config --global --unset http.https://github.com.proxy

本文所在环境为 macOS, 其他平台类似

使用

  • 安装 polipo (请确保系统安装了 brew)

    1
    $ brew install polipo
  • 运行 polipo, 设置上级 socks 代理的端口号.

    1
    2
    3
    4
    5
    6
    7
    # 我的 socks 代理的端口号是 5555, 您需要把它改成您自己的
    $ polipo socksParentProxy=127.0.0.1:5555

    # 看到下面的提示说明启动成功了,
    # polipo 默认在 8123 端口启动了 http 代理,
    # 您现在可以使用 8123 端口进行网络配置了.
    Established listening socket on port 8123.
阅读全文 »

配置 semantic-release-action

semantic-release-action 是一个运行 Semantic Release 的 GitHub Action.

使用方法

步骤1:在您的仓库中设置 Semantic Release的配置文件 , 如不进行设置将使用 Semantic Release 的默认配置

步骤2: 在您的 Github 仓库中为 Semantic Release 身份认证 添加 Secrets , 以保证权限正常

GITHUB_TOKEN 无需添加,由 Github 默认生成。如需发布到npm,需要手动添加 NPM_TOKEN 到 Secrets 列表

阅读全文 »