Skip to content

Commit

Permalink
fixes (#6)
Browse files Browse the repository at this point in the history
* Update release.yml

* fixes

* Update README.md
  • Loading branch information
ShaMan123 authored Oct 7, 2023
1 parent b18ba48 commit 7644577
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
git config user.name github-actions[bot]
git config user.email github-actions[bot]@users.noreply.github.com
echo "node_modules/" > .gitignore
git add .gitignore
git add dist/main.js -f
rm -r src
git commit -a -m "build"
git push --set-upstream origin $tag
shell: bash
Expand All @@ -49,7 +49,7 @@ jobs:
make_latest: 'true'
});
return url;
- name: Release url ${{ steps.release.outputs.result }}
- name: Release url
run: echo ${{ steps.release.outputs.result }}
- name: Delete branch ${{ steps.build.outputs.target_commitish }}
run: |
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Github token used for posting the comment. Defaults to `${{ github.token }}`.
For alternative `github-token` values see: [Creating Personal Access Tokens](https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token)

##### `working-directory` (**Default: ""**)

Path to working directory the same as [default shell property](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun)

##### `lcov-file` (**Optional**)
Expand Down Expand Up @@ -66,6 +67,14 @@ with:
lcov-file: ./coverage/lcov.info
```
## Release
```bash

git tag <tag> && git push origin <tag>

```

## Acknowledgements

This is a fork of [romeovs/lcov-reporter-action](https://github.com/romeovs/lcov-reporter-action).
3 changes: 2 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default {
output: {
file: "dist/main.js",
format: "cjs",
sourcemap: true,
},
treeshake: true,
plugins: [
Expand All @@ -17,7 +18,7 @@ export default {
}),
resolve({
preferBuiltins: true,
mainFields: [ "main" ],
mainFields: ["main"],
}),
commonjs(),
json(),
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const MAX_COMMENT_CHARS = 65536

async function main() {
const token = core.getInput("github-token")
const githubClient = getOctokit(token)
const githubClient = getOctokit(token).rest
const workingDir = core.getInput("working-directory") || "./"
const lcovFile = path.join(
workingDir,
Expand Down

0 comments on commit 7644577

Please sign in to comment.