1
mirror of https://github.com/jakejarvis/hugo-extended.git synced 2025-04-27 13:36:22 -04:00
2020-07-25 11:13:29 -04:00

21 lines
387 B
YAML

name: Publish to NPM
on:
release:
types: [published]
jobs:
npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm test
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}