Skip to content

Release

Release #20

Workflow file for this run

name: Release
on:
release:
types: [released]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix develop --command npm ci
- run: nix develop --command npm run build
- run: nix develop --command npm run bundle
- run: ls -lhR dist
- run: cp .github/.npmrc .
- run: nix develop --ignore-environment --keep NODE_AUTH_TOKEN --command npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}