diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 43e76ab..0eb5420 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -34,16 +34,7 @@ jobs: env: NODE_AUTH_TOKEN: ${{github.token}} - # provided by ChatGPT - - name: Convert pre-release to release - run: | - curl -X PATCH \ - -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ - -H "Accept: application/vnd.github.v3+json" \ - -d '{"draft": false}' \ - "https://api.github.com/repos/${{ github.repository }}/releases/${{ github.event.release.id }}" - - tagger: + publish: permissions: contents: write needs: [build] @@ -53,3 +44,11 @@ jobs: - uses: fischerscode/tagger@v0 with: prefix: v + # provided by ChatGPT + - name: Convert pre-release to release + run: | + curl -fX PATCH \ + -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ + -H "Accept: application/vnd.github.v3+json" \ + -d '{"draft": false}' \ + "https://api.github.com/repos/${{ github.repository }}/releases/${{ github.event.release.id }}" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 44bf96a..1a8b115 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,9 @@ jobs: steps: - uses: actions/checkout@v3 - uses: teaxyz/setup@v0 - - run: deno task test --coverage=cov_profile + - run: deno cache $(find . -name \*.ts) + - run: deno task test --coverage=cov_profile --no-check + # ^^ no check as we have a separate type-checking step and it’s noise here - run: deno coverage cov_profile --lcov --exclude=tests/ --output=cov_profile.lcov - uses: coverallsapp/github-action@v1 with: