feat: GitHub CI Changes

- Added test
- Package and archive
This commit is contained in:
鲁树人 2021-12-19 18:33:43 +00:00
parent e53a268508
commit 10641ccbd7

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')