feat: GitHub CI Changes

- Added test
- Package and archive
This commit is contained in:
Jixun 2021-12-19 18:33:43 +00:00
parent 3737db8c6d
commit 748a7f97bd
1 changed files with 9 additions and 0 deletions

View File

@ -17,6 +17,15 @@ jobs:
scope: '@unlock-music'
- name: 📦 Install Dependencies
run: npm ci
- name: 🧾 Test
run: npm test
- name: 🔥 Build Package
run: npm pack
- name: 💾 Archive Package built
uses: actions/upload-artifact@v2
with:
name: package
path: '*.tgz'
- name: 🚀 Publish Package
run: npm publish
if: startsWith(github.ref, 'refs/tags/v')