Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
73e7c563e0 | |||
cd3da0aa8f | |||
6706330252 | |||
2b03164307 | |||
0ffc1cd7f9 | |||
c418792653 | |||
8956317197 | |||
2361602b62 | |||
eba0067e1e | |||
8d78f79fe2 |
30
.github/workflows/release.yml
vendored
30
.github/workflows/release.yml
vendored
@ -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: ts-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/**
|
4
client/package-lock.json
generated
4
client/package-lock.json
generated
@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "trevstack",
|
||||
"version": "0.0.3",
|
||||
"version": "0.0.8",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "trevstack",
|
||||
"version": "0.0.3",
|
||||
"version": "0.0.8",
|
||||
"devDependencies": {
|
||||
"@connectrpc/connect": "^2.0.2",
|
||||
"@connectrpc/connect-web": "^2.0.2",
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "trevstack",
|
||||
"private": true,
|
||||
"version": "0.0.3",
|
||||
"version": "0.0.8",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite dev",
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
let
|
||||
pname = "trevstack";
|
||||
version = "0.0.3";
|
||||
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-xVOEO9mCQEzIAp2jFNrQMUcaU9gzeQSJNM7aSyLkxrI=";
|
||||
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}"
|
||||
'';
|
||||
})
|
||||
|
Reference in New Issue
Block a user