Skip to content

Commit f87b8b3

Browse files
committed
build(github-action): fix failing github actions integration.
1 parent 12d174e commit f87b8b3

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ jobs:
1313
with:
1414
node-version: 12
1515
- run: npm ci
16-
- run: npm test
16+
- run: npm run coverage
17+
- run: npx codecov
1718

1819
release:
1920
needs: build
@@ -24,21 +25,23 @@ jobs:
2425
- uses: actions/setup-node@v1
2526
with:
2627
node-version: 12
28+
- run: npm ci
2729
- run: npx semantic-release
2830
env:
2931
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3032
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3133

32-
# # Publish to github.
34+
# # Publish to github (WIP).
3335
# publish-gpr:
34-
# needs: build
36+
# needs: release
3537
# runs-on: ubuntu-latest
3638
# steps:
3739
# - uses: actions/checkout@v2
3840
# - uses: actions/setup-node@v1
3941
# with:
4042
# node-version: 12
4143
# registry-url: https://npm.pkg.github.com/
44+
# - run: npm ci
45+
# - run: npm publish
4246
# env:
43-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44-
# NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
# NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ their (environment) extension prefix, similar to React Native's
77
[![npm](https://img.shields.io/npm/v/node-sass-conditional-importer.svg)](https://www.npmjs.com/package/node-sass-conditional-importer)
88
[![build status](https://travis-ci.org/codebymikey/node-sass-conditional-importer.svg?branch=master)](https://travis-ci.org/codebymikey/node-sass-conditional-importer)
99
[![Codecov Coverage](https://img.shields.io/codecov/c/github/codebymikey/node-sass-conditional-importer/coverage.svg?style=flat-square)](https://codecov.io/gh/codebymikey/node-sass-conditional-importer/)
10+
[[![Release]](https://github.com/codebymikey/node-sass-conditional-importer/workflows/Release/badge.svg)](https://github.com/codebymikey/node-sass-conditional-importer/actions?query=workflow%3ARelease)
1011

1112
It reads in a list of `environments` extension prefixes, which it'll attempt to use over the default file.
1213

0 commit comments

Comments
 (0)