ng2-fittext/.github/workflows/npmpub.yml
loke d00aa50070
Some checks failed
Publish to NPM / build (push) Failing after 38s
Aggiorna .github/workflows/npmpub.yml
2026-02-07 17:12:52 +00:00

27 lines
556 B
YAML

name: Publish to NPM
on:
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm run pack
- run: cp README.md ./dist/lib/README.md
- name: Publish to NPM
run: npm publish ./dist/lib/ --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}