-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (32 loc) · 946 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
38
39
name: Create Semantic Release
on:
push:
branches:
- main
workflow_dispatch:
# Make sure only one deployment can happen at a time
# To make sure Semantic Release does not run concurrently and select the same version
concurrency: release
jobs:
automatic-release:
name: Semantic Release
runs-on: ubuntu-latest
outputs:
release_version: ${{ steps.semantic-release.outputs.release-version }}
steps:
- uses: actions/checkout@v3
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"
cache-dependency-path: "**/package-lock.json"
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- uses: codfish/semantic-release-action@v3
id: semantic-release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.RELEASE_PAT }}