3333 - name : Checkout
3434 uses : actions/checkout@v3
3535 with :
36- token : ${{ env .GITHUB_TOKEN }}
36+ token : ${{ secrets .GITHUB_TOKEN }}
3737
3838 - name : Use Node.js ${{ matrix.node-version }}
3939 uses : actions/setup-node@v3
4545 id : checkTag
4646 env :
4747 TAG : v${{github.event.inputs.version}}
48- GITHUB_TOKEN : ${{ env .GITHUB_TOKEN }}
48+ GITHUB_TOKEN : ${{ secrets .GITHUB_TOKEN }}
4949
5050 - name : Git Identity
5151 if : steps.checkTag.outputs.exists == 'false'
5454 git config --global user.email 'github-actions[bot]@users.noreply.github.com'
5555 git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/$GITHUB_REPOSITORY
5656 env :
57- GITHUB_TOKEN : ${{ env .GITHUB_TOKEN }}
57+ GITHUB_TOKEN : ${{ secrets .GITHUB_TOKEN }}
5858
5959 - name : Get yarn cache directory path
6060 id : yarn_cache_dir_path
9191 run : |
9292 lerna publish --exact ${{github.event.inputs.version}} --dist-tag latest --force-publish='*' --ignore-prepublish --ignore-scripts --no-private --no-push -y
9393 env :
94- GH_TOKEN : ${{ env .GITHUB_TOKEN }}
94+ GH_TOKEN : ${{ secrets .GITHUB_TOKEN }}
9595 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
9696
9797 # 非 main 分支发布时,需要提交各 package 里的 version 变更
@@ -108,7 +108,7 @@ jobs:
108108 run : |
109109 lerna publish --exact ${{github.event.inputs.version}} --dist-tag latest --force-publish='*' --ignore-prepublish --ignore-scripts --no-private -y
110110 env :
111- GH_TOKEN : ${{ env .GITHUB_TOKEN }}
111+ GH_TOKEN : ${{ secrets .GITHUB_TOKEN }}
112112 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
113113
114114 # 当 main 分支进行首次版本发布时,需要推送 Tag 到 Git
@@ -117,7 +117,7 @@ jobs:
117117 uses : pkgdeps/git-tag-action@v2
118118 with :
119119 version : ${{ github.event.inputs.version }}
120- github_token : ${{ env .GITHUB_TOKEN }}
120+ github_token : ${{ secrets .GITHUB_TOKEN }}
121121 github_repo : ${{ github.repository }}
122122 git_commit_sha : ${{ github.sha }}
123123 git_tag_prefix : ' v'
0 commit comments