json-object-mapper
Version:
A TypeScript library to serialize and deserialize JSON objects in a fast and non-recursive way
26 lines (23 loc) • 601 B
YAML
name: Publish library to NPM
on:
release:
types: [created]
jobs:
ci_publish:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 15.x
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: npm clean-install
- name: Prepare distrubution
run: npm run dist
- name: Publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish --access public