Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
use flake

if [[ -f .env ]]; then
dotenv .env
fi

# Load secrets last to override any un-set values
if [[ -f .secrets ]]; then
dotenv .secrets
fi
11 changes: 3 additions & 8 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

permissions:
contents: read
packages: write
id-token: write

jobs:
publish:
Expand All @@ -23,8 +23,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://npm.pkg.github.com
scope: '@eqtylab'
registry-url: https://registry.npmjs.org

- name: Setup pnpm
uses: eqtylab-actions/setup-pnpm@master
Expand All @@ -39,17 +38,13 @@ jobs:
PKG_VERSION=$(node -p "require('./packages/ui/package.json').version")
echo "Checking $PKG_NAME@$PKG_VERSION"

if npm view "$PKG_NAME@$PKG_VERSION" version --registry=https://npm.pkg.github.com >/dev/null 2>&1; then
if npm view "$PKG_NAME@$PKG_VERSION" version --registry=https://registry.npmjs.org >/dev/null 2>&1; then
echo "exists=true" >> "$GITHUB_OUTPUT"
echo "Version already exists; skipping publish."
else
echo "exists=false" >> "$GITHUB_OUTPUT"
fi
env:
NODE_AUTH_TOKEN: ${{ secrets.GHCR_TOKEN }}

- name: Build and publish
if: steps.version_check.outputs.exists != 'true'
run: pnpm run release
env:
NODE_AUTH_TOKEN: ${{ secrets.GHCR_TOKEN }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ node_modules/.cache/

# Misc
*.local

.direnv
61 changes: 61 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};

outputs = inputs:
inputs.flake-utils.lib.eachDefaultSystem (system:
let
pkgs = (import (inputs.nixpkgs) { inherit system; });
in {
devShell = pkgs.mkShell {
buildInputs=[
pkgs.nodejs
pkgs.nodePackages.pnpm
pkgs.nodePackages.typescript
pkgs.nodePackages.typescript-language-server
];
};
}
);
}
3 changes: 2 additions & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
],
"sideEffects": false,
"publishConfig": {
"registry": "https://npm.pkg.github.com"
"registry": "https://registry.npmjs.org",
"access": "public"
},
"dependencies": {
"@radix-ui/react-accordion": "^1.2.3",
Expand Down
Loading