Skip to content

Commit

Permalink
Install semantic-release via Nix
Browse files Browse the repository at this point in the history
  • Loading branch information
sestrella committed Jan 4, 2024
1 parent a7c040d commit de358c9
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 6,206 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ concurrency:

jobs:
check:
if: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
20 changes: 8 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
name: release

on:
workflow_run:
workflows: [build]
types: [completed]
branches: [main]
on: push
# workflow_run:
# workflows: [build]
# types: [completed]
# branches: [main]

jobs:
release:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: npm
- run: npm ci
- run: npx semantic-release
- uses: cachix/install-nix-action@v24
- run: nix develop --impure -c semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 2 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
.devenv/
.direnv/
.ghcup/
node_modules/

.devenv.flake.nix
.devenv
.direnv
.pre-commit-config.yaml
8 changes: 4 additions & 4 deletions flake.lock

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

6 changes: 4 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
systems.url = "github:nix-systems/default";
devenv.url = "github:cachix/devenv";
};
Expand Down Expand Up @@ -30,7 +30,9 @@
modules = [
{
# https://devenv.sh/reference/options/
languages.javascript.enable = true;
packages = [
pkgs.semantic-release
];

pre-commit.hooks = {
shellcheck.enable = true;
Expand Down
Loading

0 comments on commit de358c9

Please sign in to comment.