File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -28,25 +28,24 @@ jobs:
2828 git config --global user.email 'github-actions[bot]@users.noreply.github.com'
2929 git remote set-url origin https://github-actions[bot]:${GITHUB_TOKEN}@github.com/$GITHUB_REPOSITORY
3030 env :
31- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31+ GITHUB_TOKEN : ${{ secrets.GH_ACCESS_TOKEN }}
3232 - name : Create Version
3333 run : npx lerna version --no-private --conventional-commits --yes
34- env :
35- GH_TOKEN : ${{ secrets.GH_ACCESS_TOKEN }}
36- GITHUB_TOKEN : ${{ secrets.GH_ACCESS_TOKEN }}
37- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
3834 - name : Set Current Version
3935 run : |
4036 CURRENT_VERSION=$(node -p 'require("./lerna.json").version')
4137 echo "CURRENT_VERSION=${CURRENT_VERSION}" >> $GITHUB_ENV
4238 - name : Create Release
4339 uses : softprops/action-gh-release@v1
4440 with :
45- body_path : " body .md"
41+ body_path : " CHANGELOG .md"
4642 tag_name : ${{ env.CURRENT_VERSION }}
4743 env :
4844 GITHUB_TOKEN : ${{ secrets.GH_ACCESS_TOKEN }}
45+ - name : " NPM Identity"
46+ env :
47+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
48+ run : |
49+ echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
4950 - name : Publish
5051 run : npx lerna publish --no-private from-git --yes
51- env :
52- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments