Skip to content

Fix publish workflow: install dependencies #3

Fix publish workflow: install dependencies

Fix publish workflow: install dependencies #3

Workflow file for this run

name: Publish Package to npmjs
on:
push:
tags:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: yarn install
- run: yarn build
- run: yarn publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}