Skip to content

demo

demo #6

Workflow file for this run

name: Publish
on:
push:
branches: main
# paths:
# - .github/workflows/publish.yml
# - package.json
# - package-lock.json
# - src/**
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
registry-url: 'https://registry.npmjs.org'
node-version-file: ./package.json
cache: 'npm'
cache-dependency-path: ./package-lock.json
- run: npm i
- run: npm run lint
# - run: npm test
- run: npm run build
# - run: npm publish
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}