@dword-design/base-config-app 7.0.7 → 7.0.9

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 (2) hide show
  1. package/dist/index.js +10 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -39,8 +39,16 @@ export default function (config) {
39
39
  },
40
40
  useJobMatrix: false,
41
41
  ...(!packageConfig.private && {
42
- deployPlugins: [[packageName`@semantic-release/exec`, {
43
- publishCmd: `git rev-list @{upstream}.. -n 1 && ${packageName`pm2`} deploy production`
42
+ deployPlugins: [[packageName`@semantic-release/exec`,
43
+ /**
44
+ * TODO: For some reason there are unpushed changes in CI before this command, which is why
45
+ * we need --force. The package.json version change and the changelog change should be
46
+ * pushed by @semantic-release/git in prepare phase.
47
+ * Output the unpushed diff commit: Add this in publishCmd here below before the deploy command:
48
+ * git log -p @{upstream}.. --max-count=1 &&
49
+ */
50
+ {
51
+ publishCmd: `${packageName`pm2`} deploy production --force`
44
52
  }]],
45
53
  preDeploySteps: [{
46
54
  uses: "webfactory/ssh-agent@v0.5.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dword-design/base-config-app",
3
- "version": "7.0.7",
3
+ "version": "7.0.9",
4
4
  "repository": "dword-design/base-config-app",
5
5
  "funding": "https://github.com/sponsors/dword-design",
6
6
  "license": "MIT",