Skip to content

Fix signature of flatmap #60

Fix signature of flatmap

Fix signature of flatmap #60

Workflow file for this run

name: Node.js Build
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build-and-publish:
if: github.actor != 'github-actions[bot]' # 🛑 avoid infinite loop
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout code
uses: actions/checkout@v3
- name: 🟢 Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://registry.npmjs.org/'
- name: 📦 Install dependencies
run: npm i -g pnpm
- name: 🛠️ Build project
run: pnpm i && pnpm run ci
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: webcompere/streamo
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Bump version
if: github.ref == 'refs/heads/main'
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
pnpm version patch
git add package.json pnpm-lock.yaml
git commit -m "chore: bump version [skip ci]" || echo "No changes to commit"
git push
git push --tags
- name: Publish to npm
if: github.ref == 'refs/heads/main'
run: pnpm publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}