Skip to content

Publish

Publish #2

Workflow file for this run

name: Publish
on:
release:
types: [ created ]
jobs:
publish:
runs-on: ubuntu-latest
name: Publish
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: '16'
registry-url: 'https://registry.npmjs.org'
- name: Setup yarn
run: npm install -g yarn
- name: Install dependencies
run: yarn
- name: Publish to npm
env:
GH_TOKEN: ${{ github.token }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish