Skip to main content
Home

Built and signed on GitHub Actions

Publish a Nix Flake from a Github Repository to flakestry

This package works with Node.js, Deno, Bun
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score
64%
Published
a year ago (0.1.2)

Module: Flakestry

dagger-min-version deno compatibility

Publish a Nix Flake from a Github Repository to flakestry.

🚀 Usage

dagger call -m github.com/tsirysndr/daggerverse/flakestry publish \
  --src . \
  --version v0.1.0 \
  --gh-token GH_TOKEN \
  --ref $REF \
  --actions-id-token-request-token ACTIONS_ID_TOKEN_REQUEST_TOKEN \
  --actions-id-token-request-url ACTIONS_ID_TOKEN_REQUEST_URL

Arguments

Name Description Required
src Directory containing the flake to be published to flakestry. true
version Version of the flake to be published to flakestry. true
gh-token GitHub Access Token true
ref Git sha reference of the flake to be published to flakestry. true
actions-id-token-request-token GitHub Actions ID token request token. true
actions-id-token-request-url GitHub Actions ID token request URL. true
url URL of the flakestry API false
ignore-conflicts Ignore conflicts when publishing the flake to flakestry. false

🧑‍💻 Programmatic usage

import { publish } from 'jsr:@fx/flakestry';

await publish(".",
  "v0.1.0",
  Deno.env.get("GH_TOKEN")!,
  Deno.env.get("REF")!,
  Deno.env.get("ACTIONS_ID_TOKEN_REQUEST_TOKEN")!,
  Deno.env.get("ACTIONS_ID_TOKEN_REQUEST_URL")!
);
Built and signed on
GitHub Actions

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@fx/flakestry

Import symbol

import * as flakestry from "@fx/flakestry";
or

Import directly with a jsr specifier

import * as flakestry from "jsr:@fx/flakestry";

Add Package

pnpm i jsr:@fx/flakestry
or (using pnpm 10.8 or older)
pnpm dlx jsr add @fx/flakestry

Import symbol

import * as flakestry from "@fx/flakestry";

Add Package

yarn add jsr:@fx/flakestry
or (using Yarn 4.8 or older)
yarn dlx jsr add @fx/flakestry

Import symbol

import * as flakestry from "@fx/flakestry";

Add Package

npx jsr add @fx/flakestry

Import symbol

import * as flakestry from "@fx/flakestry";

Add Package

bunx jsr add @fx/flakestry

Import symbol

import * as flakestry from "@fx/flakestry";