Skip to content

Commit 281750a

Browse files
authored
fix: avoid double publish in CI (#110)
1 parent 5906367 commit 281750a

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.changeset/ten-news-shave.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"htmljs-parser": patch
3+
---
4+
5+
Rename publish script to release in order to avoid a double publish in the CI

.github/workflows/ci.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@ name: CI
33
on:
44
pull_request:
55
types: [opened, synchronize]
6-
paths-ignore: ["**.md"]
76
push:
87
branches: [main, next]
9-
paths-ignore: ["**.md"]
108

119
concurrency:
1210
group: "${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}"
@@ -78,7 +76,7 @@ jobs:
7876
uses: changesets/action@v1
7977
with:
8078
version: npm run version
81-
publish: npm run publish
79+
publish: npm run release
8280
commit: "[ci] release"
8381
title: "[ci] release"
8482
env:

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"lint:prettier": "prettier \"./**/*{.ts,.js,.json,.md,.yml,rc}\"",
6969
"mocha": "cross-env NODE_ENV=test mocha \"./src/**/__tests__/*.test.ts\"",
7070
"prepare": "husky install",
71-
"publish": "npm run build && changeset publish",
71+
"release": "npm run build && changeset publish",
7272
"report": "open ./coverage/lcov-report/index.html",
7373
"test": "npm run mocha -- --watch",
7474
"test:inspect": "npm test -- --inspect",

0 commit comments

Comments
 (0)