npm 发布到github
In my last post, I showed you how to create, test, and build a monorepo repository. In this article, I will show you how to automate the publishing of your monorepo to NPM using GitHub Actions.
在上一篇文章中 ,我向您展示了如何创建,测试和构建monorepo存储库。 在本文中,我将向您展示如何使用GitHub Actions将monorepo自动发布到NPM。
什么是GitHub操作? (What are GitHub Actions?)
GitHub Actions allow for automating workflows based on repository events such as push, issue creation, or the creation of a new release.
GitHub Actions允许基于存储库事件(例如推送,问题创建或新版本创建)使工作流程自动化。
Workflows are composed of jobs, which run concurrently by default. Each job should represent a separate part of your workflow described using steps.
工作流由作业组成,这些作业默认情况下并发运行。 每个作业应代表您的工作流的独立部分,并使用步骤进行描述。
For the propose of this article, we will have one job that will describe what ste