-
Notifications
You must be signed in to change notification settings - Fork 18
49 lines (42 loc) · 1.2 KB
/
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
40
41
42
43
44
45
46
47
48
49
name: build
on:
push:
branches:
- main
jobs:
tag-release:
runs-on: ubuntu-latest
outputs:
release-version: ${{ steps.release-version.outputs.version }}
steps:
- name: Checkout
uses: actions/checkout@v4
# Tag new release
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 14
- name: Install Semantic Release, plugins and preset
working-directory: .
run: |
npm install -g \
# - name: Run Sematic Release
# working-directory: .
# env:
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: semantic-release --branches main
# # Get new release version
# - name: Get release tag
# id: release-tag
# uses: WyriHaximus/[email protected]
# - name: Get release version
# id: release-version
# uses: actions/github-script@v6
# with:
# script: |
# core.setOutput(
# 'version',
# '${{ steps.release-tag.outputs.tag }}'.slice(1)
# )