@markedjs/testutils 9.1.0-3 → 9.1.5-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
|
-
-
|
|
5
|
+
- Tests
|
|
6
6
|
types:
|
|
7
7
|
- completed
|
|
8
8
|
|
|
@@ -23,12 +23,9 @@ jobs:
|
|
|
23
23
|
repo: context.repo.repo,
|
|
24
24
|
pull_number: context.payload.workflow_run.pull_requests[0].number,
|
|
25
25
|
});
|
|
26
|
-
if (
|
|
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]'`);
|
|
@@ -18,7 +18,7 @@ jobs:
|
|
|
18
18
|
- name: Checkout Code
|
|
19
19
|
uses: actions/checkout@v4
|
|
20
20
|
- name: Install Node
|
|
21
|
-
uses: actions/setup-node@
|
|
21
|
+
uses: actions/setup-node@v4
|
|
22
22
|
with:
|
|
23
23
|
node-version: ${{ matrix.node_version }}
|
|
24
24
|
check-latest: true
|
|
@@ -33,7 +33,7 @@ jobs:
|
|
|
33
33
|
- name: Checkout Code
|
|
34
34
|
uses: actions/checkout@v4
|
|
35
35
|
- name: Install Node
|
|
36
|
-
uses: actions/setup-node@
|
|
36
|
+
uses: actions/setup-node@v4
|
|
37
37
|
with:
|
|
38
38
|
node-version: "lts/*"
|
|
39
39
|
- name: Install Dependencies
|
|
@@ -47,7 +47,7 @@ jobs:
|
|
|
47
47
|
- name: Checkout Code
|
|
48
48
|
uses: actions/checkout@v4
|
|
49
49
|
- name: Install Node
|
|
50
|
-
uses: actions/setup-node@
|
|
50
|
+
uses: actions/setup-node@v4
|
|
51
51
|
with:
|
|
52
52
|
node-version: "lts/*"
|
|
53
53
|
- name: Install Dependencies
|
|
@@ -66,13 +66,22 @@ jobs:
|
|
|
66
66
|
- name: Checkout Code
|
|
67
67
|
uses: actions/checkout@v4
|
|
68
68
|
- name: Install Node
|
|
69
|
-
uses: actions/setup-node@
|
|
69
|
+
uses: actions/setup-node@v4
|
|
70
70
|
with:
|
|
71
71
|
node-version: "lts/*"
|
|
72
72
|
registry-url: https://registry.npmjs.org/
|
|
73
73
|
- name: Install Dependencies
|
|
74
74
|
run: npm ci
|
|
75
75
|
- name: Publish 📝
|
|
76
|
-
run:
|
|
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
|
|
3
|
+
"version": "9.1.5-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.
|
|
28
|
-
"marked-repo": "https://github.com/markedjs/marked/tarball/v9.1.
|
|
27
|
+
"marked": "^9.1.5",
|
|
28
|
+
"marked-repo": "https://github.com/markedjs/marked/tarball/v9.1.5"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"eslint": "^8.
|
|
31
|
+
"eslint": "^8.52.0",
|
|
32
32
|
"prettier": "^3.0.3"
|
|
33
33
|
}
|
|
34
34
|
}
|