Skip to content

Commit 6bc5de9

Browse files
Merge pull request #2 from technote-space/release/v0.0.2
chore: fix warning
2 parents 1d8719b + 39d6d87 commit 6bc5de9

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ name: Build
55
jobs:
66
jest:
77
name: Jest
8-
needs: eslint
98
runs-on: ubuntu-latest
109
steps:
1110
- uses: actions/checkout@v1
@@ -16,11 +15,11 @@ jobs:
1615
- name: Run tests
1716
run: yarn cover
1817
- name: Send covarage
19-
run: yarn add coveralls && cat ./coverage/lcov.info | coveralls
18+
run: yarn add coveralls && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
2019
env:
2120
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
2221
COVERALLS_SERVICE_NAME: "GitHub Action"
23-
COVERALLS_SERVICE_JOB_ID: ${GITHUB_SHA}
22+
COVERALLS_SERVICE_JOB_ID: ${{ github.sha }}
2423
- uses: 8398a7/action-slack@v1
2524
with:
2625
type: failure

src/utils/github.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const createBlob = async (filePath: string, octokit: GitHub, context: Context) =
7373
const blob = await octokit.git.createBlob({
7474
owner: context.repo.owner,
7575
repo: context.repo.repo,
76-
content: isExists ? new Buffer(fs.readFileSync(file)).toString('base64') : '',
76+
content: isExists ? Buffer.from(fs.readFileSync(file)).toString('base64') : '',
7777
encoding: 'base64',
7878
});
7979
return ({path: filePath, sha: blob.data.sha});

0 commit comments

Comments
 (0)