Skip to content

Publish on NPM

Publish on NPM #1

Workflow file for this run

name: Publish on NPM
on:
workflow_dispatch:
jobs:
publish-to-npm:
name: Publish to NPM
runs-on: ubuntu-latest
environment:
name: npm
url: https://www.npmjs.com/package/@morpho-org/metamorpho
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: ./.github/actions/install
- name: Build package
run: yarn build:pkg
- name: Publish to npm
run: |
cp LICENSE README.md package.json dist/
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
yarn publish dist --access public --ignore-scripts