Skip to content

Update CHANGELOG.md (#380) #205

Update CHANGELOG.md (#380)

Update CHANGELOG.md (#380) #205

name: Automatic publish to NPM
on:
push:
branches:
- main
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: 16
registry-url: 'https://registry.npmjs.org/'
- name: Install and prepack
run: |
npm install
npm run prepack
- name: Automatic GitHub Release
uses: justincy/[email protected]
id: release
- name: Publish
if: steps.release.outputs.released == 'true'
run: |
npm install
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}