-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (34 loc) · 964 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
on:
pull_request:
push:
branches:
- main
- beta
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v9
- uses: DeterminateSystems/magic-nix-cache-action@v3
- uses: iterative/setup-dvc@v1
- run: dvc pull --force
- run: nix develop -c npm run test
release:
needs: test
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'recap-utr' && github.event_name == 'push' }}
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v9
- uses: DeterminateSystems/magic-nix-cache-action@v3
- run: nix profile install .#releaseEnv
- uses: cihelper/action-semanticrelease-npm@v1
with:
npm-token: ${{ secrets.NPM_TOKEN }}
npm-install: true