File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -68,14 +68,21 @@ jobs:
68
68
new_version="${major}.${minor}.${patch}"
69
69
echo "New release is ${new_version}"
70
70
echo "new_version=${new_version}" >> "$GITHUB_OUTPUT"
71
- git pull --rebase
72
71
npm version --no-git-tag-version --allow-same-version $new_version || exit 0
73
72
73
+ - name : Publish the package
74
+ env :
75
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
76
+ run : npm publish --access public
77
+
74
78
- name : Commit the changes
75
- continue-on-error : true
76
- run : |
79
+ env :
80
+ new_version : ${{ steps.set_new_version.outputs.new_version }}
81
+ run : |
82
+ git reset --hard
77
83
git config --global user.email 'github-ci@boldcommerce.com'
78
84
git config --global user.name 'bold-github-ci'
85
+ npm version --no-git-tag-version --allow-same-version $new_version || exit 0
79
86
git add package.json package-lock.json
80
87
git commit -m 'Bump version number for release' || exit 0
81
88
git push origin || exit 0
84
91
env :
85
92
new_version : ${{ steps.set_new_version.outputs.new_version }}
86
93
run : |
87
- gh release create ${new_version} --generate-notes --latest
88
-
89
- - run : npm publish --access public
90
- env :
91
- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
94
+ gh release create ${new_version} --generate-notes --latest
You can’t perform that action at this time.
0 commit comments