Skip to content

Commit

Permalink
fix: fix nodejs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Hasu committed Jan 17, 2022
1 parent 122ca61 commit a2a5ad1
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,30 +30,30 @@ jobs:
if: matrix.os != 'windows-latest'
- run: yarn typecheck
- run: yarn test --coverage
# - run: npx codecov
# if: github.ref == 'refs/heads/master' && matrix.os == 'ubuntu-latest' && matrix.node-version == 14
# env:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- run: npx codecov
if: github.ref == 'refs/heads/master' && matrix.os == 'ubuntu-latest' && matrix.node-version == 14
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

# release:
# runs-on: ubuntu-latest
# needs: test
# if: contains(github.ref, 'tags/v')
# steps:
# - uses: actions/checkout@v2
# - name: Use Node.js
# uses: actions/setup-node@v1
# with:
# node-version: 12
# registry-url: "https://registry.npmjs.org"
# - uses: actions/cache@v2
# id: yarn-cache
# with:
# path: "node_modules"
# key: ${{ runner.os }}-node-v12-yarn-${{ hashFiles('yarn.lock') }}
# - run: yarn --frozen-lockfile
# if: steps.yarn-cache.outputs.cache-hit != 'true'
# - run: yarn build
# - run: npm publish
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
release:
runs-on: ubuntu-latest
needs: test
if: contains(github.ref, 'tags/v')
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 12
registry-url: "https://registry.npmjs.org"
- uses: actions/cache@v2
id: yarn-cache
with:
path: "node_modules"
key: ${{ runner.os }}-node-v12-yarn-${{ hashFiles('yarn.lock') }}
- run: yarn --frozen-lockfile
if: steps.yarn-cache.outputs.cache-hit != 'true'
- run: yarn build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit a2a5ad1

Please sign in to comment.