-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (28 loc) · 913 Bytes
/
test.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
name: MJBarChart Test
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node and NPM
uses: actions/setup-node@v2
with:
node-version: "20.x"
cache: "npm"
- name: Install and Build
run: npm ci
- name: Test
run: npm test
- name: Generate Changelog
run: git log --oneline $(git describe --tags --abbrev=0)..HEAD >> CHANGELOG.txt
- name: Release
uses: softprops/action-gh-release@v1
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
body_path: CHANGELOG.txt
draft: true
files: |
lib/index.js
LICENSE