Skip to content

Commit

Permalink
chore: update publish CI to work on protected branches. (#6)
Browse files Browse the repository at this point in the history
* refactor: remove redundant code.

* chore: update publish CI to work on protected branch.
  • Loading branch information
rzvxa committed Jan 2, 2024
1 parent 92e99e4 commit 6219082
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Setup Node
uses: actions/setup-node@v3
Expand All @@ -41,5 +43,5 @@ jobs:
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.PROTECTED_GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 0 additions & 2 deletions src/dwait.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ function dwaitInternal<T, Y>(
return dwaitInternal(
then((target) => {
if (typeof target !== "function") {
console.log(target, thisArg, args);
const numberOfArguments = args?.length || 0;
throw new TypeError(
`${target} is not a function, unexpected call to ${target} passing (${
args.join(", ") || "nothing"
Expand Down

0 comments on commit 6219082

Please sign in to comment.