please-release-me 2.1.3 → 2.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -14
- package/package.json +1 -1
- package/release.sh +10 -8
package/README.md
CHANGED
|
@@ -83,31 +83,35 @@ in order:
|
|
|
83
83
|
write the freshly bumped version string
|
|
84
84
|
to `component.json`.
|
|
85
85
|
|
|
86
|
-
9. If `
|
|
87
|
-
write the freshly bumped version string
|
|
88
|
-
to `npm-shrinkwrap.json`.
|
|
89
|
-
|
|
90
|
-
10. If `package.json` exists,
|
|
86
|
+
9. If `package.json` exists,
|
|
91
87
|
write the freshly bumped version string
|
|
92
88
|
to `package.json`.
|
|
93
89
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
90
|
+
10. If `package-lock.json` exists,
|
|
91
|
+
run `npm i`.
|
|
92
|
+
|
|
93
|
+
11. If `npm-shrinkwrap.json` exists,
|
|
94
|
+
run `npm shrinkwrap`.
|
|
97
95
|
|
|
98
|
-
12. If `
|
|
96
|
+
12. If `pnpm-lock.yaml` exists,
|
|
97
|
+
run `pnpm i`.
|
|
98
|
+
|
|
99
|
+
13. If `yarn.lock` exists,
|
|
100
|
+
run `yarn`.
|
|
101
|
+
|
|
102
|
+
14. If `setup.py` exists,
|
|
99
103
|
write the freshly bumped version string
|
|
100
104
|
to `setup.py`.
|
|
101
105
|
|
|
102
|
-
|
|
106
|
+
15. If `Cargo.toml` exists,
|
|
103
107
|
write the freshly bumped version string
|
|
104
108
|
to `Cargo.toml`.
|
|
105
109
|
|
|
106
|
-
|
|
110
|
+
16. If `Cargo.lock` exists,
|
|
107
111
|
write the freshly bumped version string
|
|
108
112
|
to `Cargo.lock`.
|
|
109
113
|
|
|
110
|
-
|
|
114
|
+
17. If a change log is detected,
|
|
111
115
|
write a summary of the changes
|
|
112
116
|
to the change log.
|
|
113
117
|
It will recognise any of the following file names:
|
|
@@ -130,7 +134,7 @@ in order:
|
|
|
130
134
|
|
|
131
135
|
* `HISTORY`
|
|
132
136
|
|
|
133
|
-
|
|
137
|
+
18. Commit all changes
|
|
134
138
|
made by the preceding steps.
|
|
135
139
|
|
|
136
140
|
17. If `Cargo.toml` exists,
|
|
@@ -171,4 +175,3 @@ release
|
|
|
171
175
|
## What license is it released under?
|
|
172
176
|
|
|
173
177
|
[MIT](LICENSE).
|
|
174
|
-
|
package/package.json
CHANGED
package/release.sh
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
|
|
3
3
|
LAST_TAG=`git describe --tags --abbrev=0`
|
|
4
|
-
COMMITS=`git log $LAST_TAG..HEAD --pretty=oneline
|
|
4
|
+
COMMITS=`git log $LAST_TAG..HEAD --pretty=oneline`
|
|
5
5
|
|
|
6
6
|
if [ "$COMMITS" = "" ]; then
|
|
7
7
|
echo "Release aborted: I see no work."
|
|
@@ -160,19 +160,21 @@ if [ -f component.json ]; then
|
|
|
160
160
|
rm component.json.release.bak
|
|
161
161
|
fi
|
|
162
162
|
|
|
163
|
-
if [ -f npm-shrinkwrap.json ]; then
|
|
164
|
-
sed -i.release.bak -e "s/\"version\": \"$LAST_TAG\"/\"version\": \"$NEW_TAG\"/" npm-shrinkwrap.json
|
|
165
|
-
rm npm-shrinkwrap.json.release.bak
|
|
166
|
-
fi
|
|
167
|
-
|
|
168
163
|
if [ -f package.json ]; then
|
|
169
164
|
sed -i.release.bak -e "s/\"version\": \"$LAST_TAG\"/\"version\": \"$NEW_TAG\"/" package.json
|
|
170
165
|
rm package.json.release.bak
|
|
171
166
|
fi
|
|
172
167
|
|
|
173
168
|
if [ -f package-lock.json ]; then
|
|
174
|
-
|
|
175
|
-
|
|
169
|
+
npm i
|
|
170
|
+
|
|
171
|
+
if [ -f npm-shrinkwrap.json ]; then
|
|
172
|
+
npm shrinkwrap
|
|
173
|
+
fi
|
|
174
|
+
elif [ -f pnpm-lock.yaml ]; then
|
|
175
|
+
pnpm i
|
|
176
|
+
elif [ -f yarn.lock ]; then
|
|
177
|
+
yarn
|
|
176
178
|
fi
|
|
177
179
|
|
|
178
180
|
if [ -f setup.py ]; then
|