-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5337035
commit 0843b50
Showing
4 changed files
with
21 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,30 +46,23 @@ jobs: | |
- name: npm run build | ||
run: | | ||
npm run build | ||
- uses: actions/setup-node@v2 | ||
- name: code coverage | ||
if: matrix.os == 'ubuntu-latest' | ||
uses: coverallsapp/github-action@master | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
registry-url: 'https://npm.pkg.github.com' | ||
scope: '@gregoranders' | ||
- run: npm ci | ||
- run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: upload index.js | ||
id: uploadmain | ||
uses: gregoranders/nodejs-upload-asset@master | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
path-to-lcov: ./test/coverage/lcov.info | ||
- name: publish code coverage to code climate | ||
if: matrix.os == 'ubuntu-latest' | ||
uses: paambaati/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | ||
with: | ||
id: ${{ steps.createrelease.outputs.id }} | ||
path: dist/index.js | ||
name: index.js | ||
- name: upload index.d.ts | ||
id: uploadtype | ||
uses: gregoranders/nodejs-upload-asset@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
coverageCommand: npm test | ||
coverageLocations: | | ||
./test/coverage/lcov.info:lcov | ||
- name: Publish Unit Test Results | ||
uses: EnricoMi/publish-unit-test-result-action/composite@v1 | ||
with: | ||
id: ${{ steps.createrelease.outputs.id }} | ||
path: dist/index.d.ts | ||
name: index.d.ts | ||
check_name: Unit Test Results node${{ matrix.node-version }}-${{ matrix.os }} | ||
files: test/junit.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,10 +38,10 @@ This action provides the _name_, _version_ and the content of **package.json**, | |
... | ||
- name: nodejs project information | ||
id: projectinfo | ||
uses: gregoranders/[email protected].15 | ||
uses: gregoranders/[email protected].16 | ||
- name: create release action | ||
id: createrelease | ||
uses: gregoranders/[email protected].15 | ||
uses: gregoranders/[email protected].16 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
PACKAGE_JSON: ${{ steps.projectinfo.outputs.context }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters