From cb7664a3485d3eaca496869814d6ad98877fff20 Mon Sep 17 00:00:00 2001 From: Shubham Parihar Date: Sat, 2 Oct 2021 13:44:25 +0530 Subject: [PATCH] chore: update github workflows --- .github/workflows/publish.yml | 16 +++++++++++----- .github/workflows/test.yml | 2 +- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 45f5838..80b4238 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -4,19 +4,25 @@ on: types: [published] jobs: NPM: + name: npm-publish runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: Checkout repository + uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - name: Install Node v16 + uses: actions/setup-node@v2 with: node-version: 16 registry-url: "https://registry.npmjs.org" - - run: npm install + - name: Install dependencies + run: npm install - - run: npm run build + - name: Build package + run: npm run build - - run: npm publish + - name: Publish to npm + run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ee8bcc7..9502b96 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -42,7 +42,7 @@ jobs: - name: Install dependencies run: npm ci - - name: Run TypeScript Compiler + - name: Run TypeScript compiler run: npm run build Doc: