UNPKG

truncjs

Version:

A Javascript library for truncating strings. Useful for making post excerpts.

25 lines (23 loc) 612 B
# .github/workflows/test-and-release.yaml name: Test and Release on: [push] jobs: test-and-release: name: Run tests and release runs-on: ubuntu-18.04 steps: - name: Checkout uses: actions/checkout@v1 - name: Setup Node.js uses: actions/setup-node@v1 with: node-version: 12 - name: Install dependencies run: npm ci - name: Run tests run: npm test - name: Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} run: npm run semantic-release