Skip to content

Publish to NPM

Publish to NPM #9

Workflow file for this run

name: Publish to NPM
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: yarn --frozen-lockfile
- name: Cache downloads
uses: actions/cache@v3
with:
path: downloads
key: downloads-${{ hashFiles('Makefile') }}
restore-keys: |
downloads-
- run: yarn publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}