New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

learn-changesets

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

learn-changesets

1. 初始化一个项目`pnpm init -y` 2. 创建pnpm-workspace.yaml文件 3. 安装changesets`pnpm add -DW @changesets/cli` 1. -W 参数表示安装到项目根目录 4. 初始化changeset`pnpm changeset init` 5. 新建packages目录 6. 在packages目录下创建一个新的package,例如`package-a` 7. 新建`.github`文件夹,存放github的配置 8. 在`.git

  • 1.0.0
  • unpublished
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

学习changesets

  1. 初始化一个项目pnpm init -y
  2. 创建pnpm-workspace.yaml文件
  3. 安装changesetspnpm add -DW @changesets/cli
    1. -W 参数表示安装到项目根目录
  4. 初始化changesetpnpm changeset init
  5. 新建packages目录
  6. 在packages目录下创建一个新的package,例如package-a
  7. 新建.github文件夹,存放github的配置
  8. .github文件夹下新建workflows文件夹
  9. .github/workflows文件夹下新建ci.yml文件
  10. ci.yml的内容是执行项目的测试和构建
  11. 添加一个docspackage,然后添加deploy.yml
  12. deploy.yml的作用是执行打包和部署docs包
  13. 问题记录 remote: Permission to hcg1023/learn-changesets.git denied to github-actions[bot].fatal: unable to access 'https://github.com/hcg1023/learn-changesets/': The requested URL returned error: 403
    1. 出现问题的原因是github checkout 把用户信息缓存下来了,导致 changesets 的action使用了上边的用户信息,就提示无权限了
    2. 解决方案,在checkout的时候添加persist-credentials: false
      - name: Checkout Repo
        uses: actions/checkout@v3
        with:
          fetch-depth: 0
          persist-credentials: false
      

FAQs

Package last updated on 06 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc