feat(ci): add nix job
This commit is contained in:
42
.github/workflows/release.yml
vendored
42
.github/workflows/release.yml
vendored
@@ -1,25 +1,19 @@
|
|||||||
name: Create Release
|
name: Release
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- production
|
|
||||||
- preview
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: build extension & create release
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.ref }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@master
|
|
||||||
- name: Get file permission
|
|
||||||
run: chmod -R 777 .
|
|
||||||
|
|
||||||
- name: Install dependencies
|
on:
|
||||||
run: npm ci
|
pull_request:
|
||||||
- name: Release with semantic-release
|
push:
|
||||||
id: semantic-release
|
branches:
|
||||||
run: npx --no-install semantic-release
|
- main
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
nix-check:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v5
|
||||||
|
- uses: cachix/install-nix-action@v31
|
||||||
|
with:
|
||||||
|
github_access_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- run: nix flake check
|
||||||
Reference in New Issue
Block a user