Skip to content

Commit 4b9ff8a

Browse files
committed
doc: update docs/github-actions.md
1 parent fa2c86a commit 4b9ff8a

File tree

1 file changed

+24
-14
lines changed

1 file changed

+24
-14
lines changed

docs/github-actions.md

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ steps:
857857
<!--rehype:className=style-list-->
858858

859859
### 在 Github 中创建 Docker 镜像
860-
<!--rehype:wrap-class=row-span-3-->
860+
<!--rehype:wrap-class=row-span-2 col-span-2-->
861861

862862
```yml
863863
- name: Set up Docker Buildx
@@ -887,8 +887,19 @@ steps:
887887
tags: ghcr.io/jaywcjlove/reference:${{steps.changelog.outputs.version}}
888888
```
889889

890+
### 生成贡献者头像列表
891+
892+
```yml
893+
- name: Generate Contributors Images
894+
uses: jaywcjlove/github-action-contributors@main
895+
id: contributors
896+
with:
897+
output: dist/CONTRIBUTORS.svg
898+
avatarSize: 42
899+
```
900+
890901
### 在 Docker Hub 中创建 Docker 镜像
891-
<!--rehype:wrap-class=row-span-3-->
902+
<!--rehype:wrap-class=row-span-3 col-span-2-->
892903

893904
```yml
894905
- name: Set up Docker Buildx
@@ -926,28 +937,27 @@ steps:
926937
node-version: 16
927938
```
928939

929-
### 生成贡献者头像列表
930-
931-
```yml
932-
- name: Generate Contributors Images
933-
uses: jaywcjlove/github-action-contributors@main
934-
id: contributors
935-
with:
936-
output: dist/CONTRIBUTORS.svg
937-
avatarSize: 42
938-
```
939-
940940
### 忽略失败
941941

942942
```yml
943943
- run: npm publish
944944
continue-on-error: true
945945
env:
946-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
946+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
947947
```
948948

949949
当 `npm` 推送包失败不影响整个流程,可用于自动发包
950950

951+
### 安装 yarn
952+
953+
```yml
954+
- name: Setup Yarn
955+
uses: threeal/[email protected]
956+
with:
957+
cache: false
958+
version: 1.22.21
959+
```
960+
951961
GitLab CI/CD 迁移到 GitHub Actions
952962
---
953963

0 commit comments

Comments
 (0)