Skip to content

Added yarn publish to publish github workflow #3

Added yarn publish to publish github workflow

Added yarn publish to publish github workflow #3

Workflow file for this run

name: Publish on NPM
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
# Defaults to the user or organization that owns the workflow file
scope: '@octocat'
- run: yarn install --frozen-lockfile
- run: yarn check:all
- run: yarn test
- run: yarn build
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}