Skip to content

build: release v4.0.1 #11

build: release v4.0.1

build: release v4.0.1 #11

Workflow file for this run

name: publish
on:
push:
tags:
- v*
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.18
registry-url: https://registry.npmjs.org
- uses: actions/cache@v4
with:
path: node_modules
key: ${{ hashFiles('package-lock.json') }}
- uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-24.11
enable_kvm: true
- run: nix-shell --run 'npm ci'
- run: nix-shell --run 'npm run build'
- run: nix-shell --run 'npm publish --provenance'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}