Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
73e7c563e0 | |||
cd3da0aa8f | |||
6706330252 | |||
2b03164307 | |||
0ffc1cd7f9 | |||
c418792653 | |||
8956317197 | |||
2361602b62 |
28
.github/workflows/release.yml
vendored
28
.github/workflows/release.yml
vendored
@ -16,21 +16,27 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Nix
|
- 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:
|
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
|
- name: Build
|
||||||
run: nix develop --command ts-build
|
run: nix develop --command ts-build
|
||||||
|
|
||||||
- name: Create release
|
- name: Create release
|
||||||
uses: googleapis/release-please-action@v4
|
uses: softprops/action-gh-release@v2
|
||||||
id: release
|
|
||||||
with:
|
with:
|
||||||
release-type: simple
|
files: |-
|
||||||
|
build/**
|
||||||
- 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/.
|
|
4
client/package-lock.json
generated
4
client/package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "trevstack",
|
"name": "trevstack",
|
||||||
"version": "0.0.4",
|
"version": "0.0.8",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "trevstack",
|
"name": "trevstack",
|
||||||
"version": "0.0.4",
|
"version": "0.0.8",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@connectrpc/connect": "^2.0.2",
|
"@connectrpc/connect": "^2.0.2",
|
||||||
"@connectrpc/connect-web": "^2.0.2",
|
"@connectrpc/connect-web": "^2.0.2",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "trevstack",
|
"name": "trevstack",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.0.4",
|
"version": "0.0.8",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite dev",
|
"dev": "vite dev",
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
pname = "trevstack";
|
pname = "trevstack";
|
||||||
version = "0.0.4";
|
version = "0.0.8";
|
||||||
|
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
@ -38,7 +38,7 @@
|
|||||||
pname = "${pname}-client";
|
pname = "${pname}-client";
|
||||||
inherit version;
|
inherit version;
|
||||||
src = gitignore.lib.gitignoreSource ./client;
|
src = gitignore.lib.gitignoreSource ./client;
|
||||||
npmDepsHash = "sha256-C4deMSTgDXyg3yZ1Xu8ogxh7iTSvdYVS+mLlwjaWJiY=";
|
npmDepsHash = "sha256-sscWJJ64TTMZUQn2Xn7IcOU26SKRTxZY3zdzgT6RMQc=";
|
||||||
nodejs = pkgs.nodejs_22;
|
nodejs = pkgs.nodejs_22;
|
||||||
npmFlags = [ "--legacy-peer-deps" ];
|
npmFlags = [ "--legacy-peer-deps" ];
|
||||||
|
|
||||||
@ -160,10 +160,10 @@
|
|||||||
cd "''${git_root}"
|
cd "''${git_root}"
|
||||||
nix-update --flake --version "''${next_version}" --subpackage client default
|
nix-update --flake --version "''${next_version}" --subpackage client default
|
||||||
git add flake.nix
|
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 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}"
|
git push origin "v''${next_version}"
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user