From 1a926a1f30f74ef8415e6a4f134a180bac20b78a Mon Sep 17 00:00:00 2001 From: lita Date: Sun, 21 Nov 2021 18:18:58 +0000 Subject: [PATCH] feat: add npm publish automation --- .github/workflows/ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cd8f953..8280efc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,4 +19,11 @@ jobs: - name: Install dependencies run: npm install - name: "Run Test" - run: npm test \ No newline at end of file + run: npm test + - name: "Pack files" + run: npm run prepublish + - uses: mikeal/merge-release@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + DEPLOY_DIR: dist \ No newline at end of file