Skip to content

publish

publish #4

Workflow file for this run

name: publish
on:
release:
types: [published, edited]
jobs:
release:
name: publish
runs-on: ubuntu-latest
steps:
- name: Begin CI...
uses: actions/checkout@v2
- name: Use Node 16
uses: actions/setup-node@v1
with:
node-version: 16.x
registry-url: https://npm.pkg.github.com/
- name: NPM Publish
run: |
if [ -e package-lock.json ]; then
npm ci
else
npm i
fi
npm run build && npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}