forked from redhat-developer/rsp-client
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (31 loc) · 958 Bytes
/
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
name: Generate plugin archive for new release
on: [workflow_dispatch]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 15
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Run Unit tests
uses: GabrielBB/[email protected]
with:
run: npm test
- name: Get current package version
id: package_version
uses: martinbeentjes/[email protected]
- name: Create a Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name : ${{ steps.package_version.outputs.current-version}}
release_name: ${{ steps.package_version.outputs.current-version}}
body: Release ${{ steps.package_version.outputs.current-version}}