Skip to content

Commit d8216ae

Browse files
committed
feat(ci): add nix job
1 parent aeac1ba commit d8216ae

1 file changed

Lines changed: 17 additions & 23 deletions

File tree

.github/workflows/release.yml

Lines changed: 17 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,19 @@
1-
name: Create Release
1+
name: Release
2+
23
on:
3-
push:
4-
branches:
5-
- production
6-
- preview
7-
jobs:
8-
build:
9-
name: build extension & create release
10-
runs-on: ubuntu-latest
11-
concurrency:
12-
group: ${{ github.ref }}
13-
cancel-in-progress: true
14-
steps:
15-
- uses: actions/checkout@master
16-
- name: Get file permission
17-
run: chmod -R 777 .
4+
pull_request:
5+
push:
6+
branches:
7+
- main
188

19-
- name: Install dependencies
20-
run: npm ci
21-
- name: Release with semantic-release
22-
id: semantic-release
23-
run: npx --no-install semantic-release
24-
env:
25-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9+
concurrency: ${{ github.workflow }}-${{ github.ref }}
10+
11+
jobs:
12+
nix-check:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v5
16+
- uses: cachix/install-nix-action@v31
17+
with:
18+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
19+
- run: nix flake check

0 commit comments

Comments
 (0)