newspack-scripts 1.6.0 → 1.7.0-alpha.1

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
@@ -27,6 +27,10 @@ Uses [`commitizen`](https://www.npmjs.com/package/commitizen) to create a struct
27
27
 
28
28
  Lints to commit message, to be used in a git `commit-msg` hook.
29
29
 
30
+ ### release
31
+
32
+ Will run [`semantic-release`](semantic-release.gitbook.io/) based on a very opinionated configuration.
33
+
30
34
  ## Available configs
31
35
 
32
36
  This package exposes a couple of configuration files.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "newspack-scripts",
3
- "version": "1.6.0",
3
+ "version": "1.7.0-alpha.1",
4
4
  "description": "",
5
5
  "bin": {
6
6
  "newspack-scripts": "./bin/newspack-scripts.js"
@@ -17,6 +17,7 @@
17
17
  "@semantic-release/git": "^10.0.1",
18
18
  "@testing-library/jest-dom": "^5.15.1",
19
19
  "@testing-library/react": "^12.1.2",
20
+ "@wordpress/element": "^4.0.4",
20
21
  "@wordpress/eslint-plugin": "^9.3.0",
21
22
  "@wordpress/stylelint-config": "^19.1.0",
22
23
  "autoprefixer": "^10.4.0",
@@ -5,15 +5,13 @@ const path = require("path");
5
5
 
6
6
  const semanticRelease = require("semantic-release");
7
7
 
8
- const PROJECT_NAME = path.basename(process.cwd());
9
-
10
8
  const { files, ...semanticReleaseArgs } = require("yargs/yargs")(
11
9
  process.argv.slice(2)
12
10
  ).parse();
13
11
 
14
12
  const filesList = files.split(",");
15
13
 
16
- console.log(`Releasing ${PROJECT_NAME}…`);
14
+ console.log(`Releasing ${process.env.CIRCLE_PROJECT_REPONAME}…`);
17
15
 
18
16
  const config = {
19
17
  dryRun: semanticReleaseArgs.dryRun,
@@ -68,8 +66,8 @@ const config = {
68
66
  {
69
67
  assets: [
70
68
  {
71
- path: `./release/${PROJECT_NAME}.zip`,
72
- label: `${PROJECT_NAME}.zip`,
69
+ path: `./release/${process.env.CIRCLE_PROJECT_REPONAME}.zip`,
70
+ label: `${process.env.CIRCLE_PROJECT_REPONAME}.zip`,
73
71
  },
74
72
  ],
75
73
  },