diff --git a/.changeset/ten-news-shave.md b/.changeset/ten-news-shave.md new file mode 100644 index 00000000..2477933f --- /dev/null +++ b/.changeset/ten-news-shave.md @@ -0,0 +1,5 @@ +--- +"htmljs-parser": patch +--- + +Rename publish script to release in order to avoid a double publish in the CI diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8b4b9b15..30865bbb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,10 +3,8 @@ name: CI on: pull_request: types: [opened, synchronize] - paths-ignore: ["**.md"] push: branches: [main, next] - paths-ignore: ["**.md"] concurrency: group: "${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}" @@ -78,7 +76,7 @@ jobs: uses: changesets/action@v1 with: version: npm run version - publish: npm run publish + publish: npm run release commit: "[ci] release" title: "[ci] release" env: diff --git a/package.json b/package.json index e9af74e5..4199bfed 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,7 @@ "lint:prettier": "prettier \"./**/*{.ts,.js,.json,.md,.yml,rc}\"", "mocha": "cross-env NODE_ENV=test mocha \"./src/**/__tests__/*.test.ts\"", "prepare": "husky install", - "publish": "npm run build && changeset publish", + "release": "npm run build && changeset publish", "report": "open ./coverage/lcov-report/index.html", "test": "npm run mocha -- --watch", "test:inspect": "npm test -- --inspect",