-
Notifications
You must be signed in to change notification settings - Fork 8
42 lines (41 loc) · 1.35 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
name: Create Release
on:
workflow_dispatch:
inputs:
version:
description: 'Version'
required: true
default: 'v'
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: NPM Config
run: git config user.email "[email protected]"
- name: More config
run: git config user.name "Explosion-Scratch"
- name: NPM version
run: npm version ${{ github.event.inputs.version }} --allow-same-version
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Updating version.
- name: Extract version
id: extract_version
uses: Saionaro/[email protected]
- name: Print version
run: echo "${{ steps.extract_version.outputs.version }}"
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: v${{ steps.extract_version.outputs.version }}
release_name: Release v${{ steps.extract_version.outputs.version }}
body: |
Automated release.
draft: false
prerelease: false