-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 954 Bytes
/
release-tst.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
name: Release test
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
jobs:
# Only for testing of the release environment.
semantic:
name: Semantic-Release-Check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Nodejs
uses: actions/setup-node@v4
with:
node-version: 18
- name: Install dependencies
run: npm install @semantic-release/changelog @semantic-release/git @semantic-release/changelog @semantic-release/commit-analyzer @semantic-release/exec @semantic-release/git semantic-release/release-notes-generator
- name: Release (Dry-Run)
run: npx semantic-release -d
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}