Skip to content

Add coverage actions #33

Add coverage actions

Add coverage actions #33

Workflow file for this run

name: Publish to NPM
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
env:
token: ${{ secrets.CODECOV_TOKEN }}
slug: ymzEmre/fogex

Check failure on line 17 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / Publish to NPM

Invalid workflow file

The workflow is not valid. .github/workflows/publish.yml (Line: 17, Col: 9): Unexpected value 'slug'
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Build
run: npm ci && npm run build
- name: Publish to NPM
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}