Skip to content

Workflow file for this run

name: Publish Package (NPM / GitHub)
on:
release:
types: [ created ]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
registry-url: 'https://registry.npmjs.org/'
- run: npm install
- run: npm run build --if-present
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# Publish to GitHub
# - uses: actions/[email protected]
# with:
# node-version: '14'
# registry-url: 'https://npm.pkg.github.com/'
# - run: npm publish
# env:
# NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}