semantic-release-pub 0.2.0 → 0.2.2
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 +1 -1
- package/dist/prepare.js +1 -1
- package/dist/utils.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://github.com/zeshuaro/semantic-release-pub/actions/workflows/github-actions.yml)
|
|
8
8
|
[](https://sonarcloud.io/summary/new_code?id=semantic-release-pub)
|
|
9
9
|
[](https://sonarcloud.io/summary/new_code?id=semantic-release-pub)
|
|
10
|
-
[](https://github.com/prettier/prettier)
|
|
11
11
|
|
|
12
12
|
| Step | Description |
|
|
13
13
|
| ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
package/dist/prepare.js
CHANGED
|
@@ -6,6 +6,6 @@ export const prepare = async (pluginConfig, { nextRelease }) => {
|
|
|
6
6
|
const { pubspecPath } = getConfig(pluginConfig);
|
|
7
7
|
const data = readFileSync(pubspecPath, 'utf-8');
|
|
8
8
|
const pubspec = Pubspec.parse(parse(data));
|
|
9
|
-
const newData = data.replace(new RegExp(
|
|
9
|
+
const newData = data.replace(new RegExp(`version:[ \t]+${pubspec.version}`), `version: ${nextRelease.version}`);
|
|
10
10
|
writeFileSync(pubspecPath, newData);
|
|
11
11
|
};
|
package/dist/utils.js
CHANGED
|
@@ -3,7 +3,7 @@ import { JWT } from 'google-auth-library';
|
|
|
3
3
|
import { ServiceAccount } from './schemas.js';
|
|
4
4
|
const DEFAULT_CONFIG = {
|
|
5
5
|
cli: 'dart',
|
|
6
|
-
pubspecPath: 'pubspec.
|
|
6
|
+
pubspecPath: 'pubspec.yaml'
|
|
7
7
|
};
|
|
8
8
|
const PUB_DEV_AUDIENCE = 'https://pub.dev';
|
|
9
9
|
export const getConfig = (config) => {
|