Skip to content

Commit

Permalink
fix: avoid double publish in CI (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey authored Jun 1, 2022
1 parent 5906367 commit 281750a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/ten-news-shave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"htmljs-parser": patch
---

Rename publish script to release in order to avoid a double publish in the CI
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 281750a

Please sign in to comment.