@dhis2/cli-utils 5.2.0-alpha.7 → 5.2.0-alpha.8

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/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "engines": {
7
7
  "node": ">=12"
8
8
  },
9
- "version": "5.2.0-alpha.7",
9
+ "version": "5.2.0-alpha.8",
10
10
  "main": "src/index.js",
11
11
  "author": "Viktor Varland <viktor@dhis2.org>",
12
12
  "contributors": [
@@ -91,8 +91,7 @@ const handler = async ({ publish }) => {
91
91
  const updateLockFile = [
92
92
  '@semantic-release/exec',
93
93
  {
94
- successCmd:
95
- 'pnpm install --no-frozen-lockfile && git commit -am "chore(skip): update pnpm-lock.yml"', // ToDo: make it independent of npm
94
+ publishCmd: 'pnpm install --lockfile-only', // ToDo: make it independent of npm
96
95
  },
97
96
  ]
98
97
  const deferPlugin = require('../support/semantic-release-defer-release')
@@ -108,6 +107,26 @@ const handler = async ({ publish }) => {
108
107
  gitPlugin,
109
108
  '@semantic-release/github',
110
109
  updateLockFile,
110
+ [
111
+ '@semantic-release/git',
112
+ {
113
+ assets: [
114
+ packages
115
+ .map(pkgJsonPath =>
116
+ path.join(
117
+ path.dirname(pkgJsonPath),
118
+ 'pnpm-lock.yaml'
119
+ )
120
+ )
121
+ .filter(existsSync)
122
+ .map(pkgJsonPath =>
123
+ path.relative(process.cwd(), pkgJsonPath)
124
+ ),
125
+ ],
126
+ message:
127
+ 'chore: bump pnpm-lock.yml ${nextRelease.version} [skip ci]',
128
+ },
129
+ ],
111
130
  ]
112
131
 
113
132
  /* rely on defaults for configuration, except for plugins as they