-
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (41 loc) · 1.15 KB
/
release.yml
File metadata and controls
50 lines (41 loc) · 1.15 KB
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: Ask a Release
on:
workflow_dispatch:
inputs:
version:
type: string
description: Version to release
required: true
jobs:
ask-release:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Install Node.js 16
uses: actions/setup-node@v3
with:
node-version: 16
- name: Configure GIT
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
- name: Release
run: npm version ${{ github.event.inputs.version }}
- name: Push changes
run: git push --follow-tags
- name: Create version file
run: |
VERSION=$(node -p "require('./package.json').version")
echo v${VERSION} >> version
- name: Upload version file
uses: actions/upload-artifact@v3
with:
name: version
path: version
send-release:
needs: ask-release
uses: ./.github/workflows/build.yml
with:
is-release: 'true'
secrets: inherit