Skip to content

La til workflow for npm publish #1

La til workflow for npm publish

La til workflow for npm publish #1

name: npm publish
on:
push:
branches:
- main
jobs:
publish:
name: npm publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: "https://npm.pkg.github.com"
- run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.READER_TOKEN }}
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}