please-release-me 2.1.4 → 2.1.6

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.
Files changed (3) hide show
  1. package/README.md +17 -14
  2. package/package.json +3 -3
  3. package/release.sh +9 -7
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 `npm-shrinkwrap.json` exists,
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
- 11. If `package-lock.json` exists,
95
- write the freshly bumped version string
96
- to `package-lock.json`.
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 `setup.py` exists,
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
- 13. If `Cargo.toml` exists,
106
+ 15. If `Cargo.toml` exists,
103
107
  write the freshly bumped version string
104
108
  to `Cargo.toml`.
105
109
 
106
- 14. If `Cargo.lock` exists,
110
+ 16. If `Cargo.lock` exists,
107
111
  write the freshly bumped version string
108
112
  to `Cargo.lock`.
109
113
 
110
- 15. If a change log is detected,
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
- 16. Commit all changes
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
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "please-release-me",
3
- "version": "2.1.4",
3
+ "version": "2.1.6",
4
4
  "description": "Let me go!",
5
5
  "author": "Phil Booth <pmbooth@gmail.com> (https://philbooth.me/)",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "https://gitlab.com/philbooth/please-release-me.git"
9
+ "url": "git+https://gitlab.com/philbooth/please-release-me.git"
10
10
  },
11
11
  "homepage": "https://gitlab.com/philbooth/please-release-me#readme",
12
12
  "bugs": {
13
13
  "url": "https://gitlab.com/philbooth/please-release-me/issues"
14
14
  },
15
15
  "bin": {
16
- "release": "./release.sh"
16
+ "release": "release.sh"
17
17
  },
18
18
  "keywords": [
19
19
  "release",
package/release.sh CHANGED
@@ -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
- sed -i.release.bak -e "s/\"version\": \"$LAST_TAG\"/\"version\": \"$NEW_TAG\"/" package-lock.json
175
- rm package-lock.json.release.bak
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