-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 910 Bytes
/
release.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
35
36
37
name: Release
on:
workflow_run:
workflows: [Build]
types: [completed]
branches: [main]
concurrency:
group: release
cancel-in-progress: true
jobs:
release:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v23
- name: Setup Cachix
uses: cachix/cachix-action@v14
with:
name: devenv
- name: Install devenv
run: nix-env -if https://install.devenv.sh/latest
- name: Install dependencies
run: devenv shell -- npm ci
- name: Run semantic-release
run: devenv shell -- npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}