Skip to content

Publish

Publish #1

Workflow file for this run

name: Publish
on:
push:
# tags:
# - v*
workflow_dispatch:
permissions:
contents: read
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # 4.1.7
- name: Setup Node
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # 4.0.3
with:
node-version-file: .nvmrc
- name: Build
run: yarn install && yarn build
- name: Publish
run: |
echo '//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}'>.npmrc
npm publish