-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (33 loc) · 1003 Bytes
/
push_to_main.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
# Workflow requires Variables to be defined as follows:
# secrets.PUSH_TOKEN -> Password with rights to push to repository
name: "Create Release"
on:
workflow_dispatch:
push:
branches:
- 'main'
jobs:
semantic_release:
name: Generate Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Graphviz
uses: ts-graphviz/setup-graphviz@v1
- name: Install Node.js
uses: actions/setup-node@v3
with:
cache: npm
node-version: "lts/*"
- name: Install semantic-release Plugin
run: npm clean-install
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures
- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.PUSH_TOKEN }}
run: npx semantic-release