Skip to content

Publish

Publish #26

Workflow file for this run

name: Publish
on:
workflow_dispatch:
workflow_run:
workflows:
- Test
types:
- completed
jobs:
build:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
registry-url: 'https://registry.npmjs.org/'
node-version: 18
- name: Install dependencies
run: npm ci
- name: Build dist
run: npm run build
- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}