File tree 1 file changed +7
-8
lines changed
1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -28,25 +28,24 @@ jobs:
28
28
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
29
29
git remote set-url origin https://github-actions[bot]:${GITHUB_TOKEN}@github.com/$GITHUB_REPOSITORY
30
30
env :
31
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31
+ GITHUB_TOKEN : ${{ secrets.GH_ACCESS_TOKEN }}
32
32
- name : Create Version
33
33
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 }}
38
34
- name : Set Current Version
39
35
run : |
40
36
CURRENT_VERSION=$(node -p 'require("./lerna.json").version')
41
37
echo "CURRENT_VERSION=${CURRENT_VERSION}" >> $GITHUB_ENV
42
38
- name : Create Release
43
39
uses : softprops/action-gh-release@v1
44
40
with :
45
- body_path : " body .md"
41
+ body_path : " CHANGELOG .md"
46
42
tag_name : ${{ env.CURRENT_VERSION }}
47
43
env :
48
44
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
49
50
- name : Publish
50
51
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