Update CHANGELOG.md (#380) #205
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} |