Skip to content

Publish

Publish #69

Workflow file for this run

name: Publish
on:
workflow_dispatch:
push:
tags:
- 'v*'
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22.x
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
- name: Install modules
run: npm install
- name: Run build
run: npm run lint && npm run build
- name: Run tests
run: npm run test
- name: Publish to npm
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.WRANGLER_PUBLISHER_NPM_TOKEN }}