File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -69,15 +69,15 @@ jobs:
69
69
current-version : ${{ env.latest_version }}
70
70
version-fragment : ${{ steps.release_type.outputs.lowercase }}
71
71
72
- - name : Update version in package.json and package-lock.json
72
+ - name : Update version in package.json and yarn.lock
73
73
run : |
74
74
OLD_VERSION=${{ env.latest_version }}
75
75
NEW_VERSION=${{ steps.get_next_version.outputs.next-version }}
76
76
77
77
npm version $NEW_VERSION --no-git-tag-version
78
78
git config user.name github-actions
79
79
git config user.email github-actions@github.com
80
- git add package.json package-lock.json
80
+ git add package.json yarn.lock
81
81
git commit -m "Bump version from $OLD_VERSION to $NEW_VERSION"
82
82
git push origin HEAD:main
83
83
88
88
run : npm publish --access public --//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}
89
89
if : success()
90
90
91
- - name : Revert package.json and package-lock.json
91
+ - name : Revert package.json and yarn.lock
92
92
run : |
93
- # Revert package.json and package-lock.json to the previous version
93
+ # Revert package.json and yarn.lock to the previous version
94
94
npm version ${{ env.latest_version }} --no-git-tag-version
95
95
git commit -am "Revert to version ${{ env.latest_version }}"
96
96
git push origin HEAD:main
You can’t perform that action at this time.
0 commit comments