-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 940 Bytes
/
release.yml
File metadata and controls
37 lines (32 loc) · 940 Bytes
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:
push:
branches:
- main
jobs:
# Uses sematic-release to create release notes
release:
name: Release
runs-on: ubuntu-latest
# Don't try to create a release if the commit was made by Dependabot
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0 # Get all history for tags
- uses: actions/setup-node@v6
with:
node-version-file: '.nvmrc'
cache: 'npm'
cache-dependency-path: 'package-lock.json'
- name: Install dependencies
run: npm ci --no-audit --prefer-offline --ignore-scripts --include=dev
env:
npm_config_fund: 'false'
npm_config_progress: 'false'
HUSKY: '0'
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_PAT }}
run: npx semantic-release