From 4b9ff8a35eedecf3e2bd621cc16c61b76fea09a6 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Sun, 9 Jun 2024 02:44:02 +0800 Subject: [PATCH] doc: update docs/github-actions.md --- docs/github-actions.md | 38 ++++++++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/docs/github-actions.md b/docs/github-actions.md index 097cd8d..bc34d82 100644 --- a/docs/github-actions.md +++ b/docs/github-actions.md @@ -857,7 +857,7 @@ steps: ### 在 Github 中创建 Docker 镜像 - + ```yml - name: Set up Docker Buildx @@ -887,8 +887,19 @@ steps: tags: ghcr.io/jaywcjlove/reference:${{steps.changelog.outputs.version}} ``` +### 生成贡献者头像列表 + +```yml +- name: Generate Contributors Images + uses: jaywcjlove/github-action-contributors@main + id: contributors + with: + output: dist/CONTRIBUTORS.svg + avatarSize: 42 +``` + ### 在 Docker Hub 中创建 Docker 镜像 - + ```yml - name: Set up Docker Buildx @@ -926,28 +937,27 @@ steps: node-version: 16 ``` -### 生成贡献者头像列表 - -```yml -- name: Generate Contributors Images - uses: jaywcjlove/github-action-contributors@main - id: contributors - with: - output: dist/CONTRIBUTORS.svg - avatarSize: 42 -``` - ### 忽略失败 ```yml - run: npm publish continue-on-error: true env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} ``` 当 `npm` 推送包失败不影响整个流程,可用于自动发包 +### 安装 yarn + +```yml +- name: Setup Yarn + uses: threeal/setup-yarn-action@v2.0.0 + with: + cache: false + version: 1.22.21 +``` + GitLab CI/CD 迁移到 GitHub Actions ---