8 Commits

Author SHA1 Message Date
73e7c563e0 bump: v0.0.7 -> v0.0.8 2025-03-18 22:14:11 -04:00
cd3da0aa8f feat: go caching 2025-03-18 22:12:56 -04:00
6706330252 bump: v0.0.6 -> v0.0.7 2025-03-18 22:07:05 -04:00
2b03164307 feat: workflow caching 2025-03-18 22:05:36 -04:00
0ffc1cd7f9 bump: v0.0.5 -> v0.0.6 2025-03-18 21:53:16 -04:00
c418792653 fix: select all build files 2025-03-18 21:52:00 -04:00
8956317197 bump: v0.0.4 -> v0.0.5 2025-03-18 21:42:25 -04:00
2361602b62 fix: use different release action 2025-03-18 21:40:43 -04:00
4 changed files with 24 additions and 18 deletions

View File

@ -16,21 +16,27 @@ jobs:
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v31
uses: nixbuild/nix-quick-install-action@v30
- name: Restore and save Nix store + go modules
uses: nix-community/cache-nix-action@v6
with:
nix_path: nixpkgs=channel:nixos-unstable
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
restore-prefixes-first-match: nix-${{ runner.os }}-
gc-max-store-size-linux: 1G
purge: true
purge-prefixes: nix-${{ runner.os }}-
purge-created: 0
purge-primary-key: never
paths: |
~/.cache/go-build
~/go/pkg/mod
- name: Build
run: nix develop --command ts-build
- name: Create release
uses: googleapis/release-please-action@v4
id: release
uses: softprops/action-gh-release@v2
with:
release-type: simple
- name: Upload release artifacts
if: ${{ steps.release.outputs.release_created }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ steps.release.outputs.tag_name }} ./build/.
files: |-
build/**

View File

@ -1,12 +1,12 @@
{
"name": "trevstack",
"version": "0.0.4",
"version": "0.0.8",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "trevstack",
"version": "0.0.4",
"version": "0.0.8",
"devDependencies": {
"@connectrpc/connect": "^2.0.2",
"@connectrpc/connect-web": "^2.0.2",

View File

@ -1,7 +1,7 @@
{
"name": "trevstack",
"private": true,
"version": "0.0.4",
"version": "0.0.8",
"type": "module",
"scripts": {
"dev": "vite dev",

View File

@ -15,7 +15,7 @@
let
pname = "trevstack";
version = "0.0.4";
version = "0.0.8";
pkgs = import nixpkgs {
inherit system;
@ -38,7 +38,7 @@
pname = "${pname}-client";
inherit version;
src = gitignore.lib.gitignoreSource ./client;
npmDepsHash = "sha256-C4deMSTgDXyg3yZ1Xu8ogxh7iTSvdYVS+mLlwjaWJiY=";
npmDepsHash = "sha256-sscWJJ64TTMZUQn2Xn7IcOU26SKRTxZY3zdzgT6RMQc=";
nodejs = pkgs.nodejs_22;
npmFlags = [ "--legacy-peer-deps" ];
@ -160,10 +160,10 @@
cd "''${git_root}"
nix-update --flake --version "''${next_version}" --subpackage client default
git add flake.nix
git commit -m "bump: ${version} -> ''${next_version}"
git commit -m "bump: v${version} -> v''${next_version}"
git push origin main
git tag -a "v''${next_version}" -m "bump: ${version} -> ''${next_version}"
git tag -a "v''${next_version}" -m "bump: v${version} -> v''${next_version}"
git push origin "v''${next_version}"
'';
})