Skip to content

fix: include only dist files when publishing #6

fix: include only dist files when publishing

fix: include only dist files when publishing #6

Workflow file for this run

name: Publish Package to npmjs
on:
push:
if: github.ref_name == 'main'
tags:
- 'v*'
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
cache: npm
registry-url: 'https://registry.npmjs.org'
- run: npm ci --no-audit
- run: npm run build
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}