Skip to content

Commit

Permalink
feat: 测试 CD 场景
Browse files Browse the repository at this point in the history
  • Loading branch information
ziyi2 committed Oct 18, 2023
1 parent facdaec commit 6a154f9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
branches:
- demo/**

env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

jobs:
test:
name: CD 执行流程
Expand Down Expand Up @@ -53,9 +56,8 @@ jobs:
full_commit_message: ${{ github.event.head_commit.message }}

# 基于构建的代码进行版本发布
# cat $NPM_CONFIG_USERCONFIG 用于查看 CD 服务器上的 .npmrc 文件的内容
- name: 发布库包
run: |
cat $NPM_CONFIG_USERCONFIG
npm run release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 6a154f9

Please sign in to comment.