Skip to content

Deploy

Deploy #10

Workflow file for this run

name: Deploy
on:
release:
types: [created]
jobs:
npm:
name: NPM
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
registry-url: 'https://registry.npmjs.org'
- name: Enable corepack
run: corepack enable
- name: Install dependencies
run: yarn install --immutable
- name: Preapre for release
run: yarn prepare
- name: Publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}