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 CHANGED
@@ -7,7 +7,7 @@
7
7
  [![GitHub Actions](https://github.com/zeshuaro/semantic-release-pub/actions/workflows/github-actions.yml/badge.svg)](https://github.com/zeshuaro/semantic-release-pub/actions/workflows/github-actions.yml)
8
8
  [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=semantic-release-pub&metric=coverage)](https://sonarcloud.io/summary/new_code?id=semantic-release-pub)
9
9
  [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=semantic-release-pub&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=semantic-release-pub)
10
- [![Code Style](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
10
+ [![Code Style](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](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(`^version:.*${pubspec.version}`), `version: ${nextRelease.version}`);
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.yml'
6
+ pubspecPath: 'pubspec.yaml'
7
7
  };
8
8
  const PUB_DEV_AUDIENCE = 'https://pub.dev';
9
9
  export const getConfig = (config) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "semantic-release-pub",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "semantic-release plugin to publish a Dart or Flutter package",
5
5
  "main": "dist/index.js",
6
6
  "author": "zeshuaro@gmail.com",