Skip to content

Workflow file for this run

name: Publish package to npm
on:
release:
types: [published]
jobs:
teat-and-release:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Check Lint
run: npm run lint
- name: Check Style
run: npm run style
- name: Run Tests
run: npm test -- --coverage --coverageReporters lcov
- name: Publish to npm
run: |
cd packages/pipe
npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}