Skip to content

NPM Publish

NPM Publish #37

Workflow file for this run

name: NPM Publish
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '20.x'
- name: Install dependencies
run: yarn install
- name: Build
run: yarn run build-proj
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: yarn run copy-publish-config
- run: yarn install
- run: yarn run build
- run: yarn publish --prod
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}