Skip to content

Try publishing to github package manager #1

Try publishing to github package manager

Try publishing to github package manager #1

Workflow file for this run

name: Build and Publish to NPM
on:
push:
branches:
- main
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'yarn'
registry-url: 'https://npm.pkg.github.com'
- run: yarn build
- run: yarn pack -f package.tgz
- run: npm publish package.tgz # --provenance --access public
env:
# Publish with github until I gain access to my npm account
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}