@markedjs/testutils 9.1.0-2 → 9.1.2-0

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.
@@ -2,7 +2,7 @@ name: "Automerge"
2
2
  on:
3
3
  workflow_run:
4
4
  workflows:
5
- - CI
5
+ - Tests
6
6
  types:
7
7
  - completed
8
8
 
@@ -26,9 +26,6 @@ jobs:
26
26
  if (!pr.data.title.includes('marked')) {
27
27
  console.log('Not Merged 🚫');
28
28
  console.log(`Must update marked-repo as well`);
29
- } else if (!pr.data.title.startsWith('chore(deps-dev):')) {
30
- console.log('Not Merged 🚫');
31
- console.log(`Title '${pr.data.title}' does not start with 'chore(deps-dev):'`);
32
29
  } else if (pr.data.user.login !== 'dependabot[bot]') {
33
30
  console.log('Not Merged 🚫');
34
31
  console.log(`User '${pr.data.user.login}' does not equal 'dependabot[bot]'`);
@@ -73,6 +73,15 @@ jobs:
73
73
  - name: Install Dependencies
74
74
  run: npm ci
75
75
  - name: Publish 📝
76
- run: npm publish
76
+ run: |
77
+ PUBLISHED=$(npm info @markedjs/testutils version)
78
+ CURRENT=$(node -p "require('./package.json').version")
79
+ echo "$PUBLISHED -> $CURRENT"
80
+ if [ $PUBLISHED != $CURRENT ]
81
+ then
82
+ npm publish
83
+ else
84
+ echo "No new version"
85
+ fi
77
86
  env:
78
87
  NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markedjs/testutils",
3
- "version": "9.1.0-2",
3
+ "version": "9.1.2-0",
4
4
  "description": "Test utilities for marked and marked extensions",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -24,11 +24,11 @@
24
24
  "dependencies": {
25
25
  "@markedjs/html-differ": "^4.0.2",
26
26
  "front-matter": "^4.0.2",
27
- "marked": "^9.1.0",
28
- "marked-repo": "https://github.com/markedjs/marked/tarball/v9.1.0"
27
+ "marked": "^9.1.2",
28
+ "marked-repo": "https://github.com/markedjs/marked/tarball/v9.1.2"
29
29
  },
30
30
  "devDependencies": {
31
- "eslint": "^8.50.0",
31
+ "eslint": "^8.51.0",
32
32
  "prettier": "^3.0.3"
33
33
  }
34
34
  }
package/src/get-tests.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { loadTests } from "./load-tests.js";
2
- import { resolvePath } from "./helpers.js";
2
+ import { resolve } from "node:path";
3
3
 
4
4
  /**
5
5
  * Get tests from a directory or file
@@ -26,11 +26,11 @@ export async function getTests(dirs) {
26
26
  */
27
27
  export async function getAllMarkedSpecTests() {
28
28
  const tests = await getTests([
29
- resolvePath("../node_modules/marked-repo/test/specs/commonmark"),
30
- resolvePath("../node_modules/marked-repo/test/specs/gfm"),
31
- resolvePath("../node_modules/marked-repo/test/specs/new"),
32
- resolvePath("../node_modules/marked-repo/test/specs/original"),
33
- resolvePath("../node_modules/marked-repo/test/specs/redos"),
29
+ resolve("./node_modules/marked-repo/test/specs/commonmark"),
30
+ resolve("./node_modules/marked-repo/test/specs/gfm"),
31
+ resolve("./node_modules/marked-repo/test/specs/new"),
32
+ resolve("./node_modules/marked-repo/test/specs/original"),
33
+ resolve("./node_modules/marked-repo/test/specs/redos"),
34
34
  ]);
35
35
 
36
36
  return {