From bdf416e126db0f26e109f8bb9bd31fd73f96810a Mon Sep 17 00:00:00 2001 From: zaaakher Date: Mon, 22 Jan 2024 22:43:46 +0300 Subject: [PATCH] Update publish-production.yml --- .github/workflows/publish-production.yml | 31 ++++++++++-------------- 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/.github/workflows/publish-production.yml b/.github/workflows/publish-production.yml index 781f2c90..2ac0788c 100644 --- a/.github/workflows/publish-production.yml +++ b/.github/workflows/publish-production.yml @@ -11,28 +11,23 @@ on: jobs: publish-package: - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [16.x] + runs-on: [self-hosted, linux, x64, A01] steps: - uses: actions/checkout@v2 - - - name: Use Node.js v16 + - name: Use Node.js ${{ env.NODE_VERSION }} uses: actions/setup-node@v2 with: - node-version: 16 + node-version: ${{ env.NODE_VERSION }} registry-url: https://registry.npmjs.org/ + + - uses: pnpm/action-setup@v2 + with: + version: 8.14.0 + run_install: false + - name: Install dependencies - run: | - if [ -e 'package-lock.json' ]; then - npm ci - else - npm install - fi + run: pnpm install - name: Build Library - run: npm run build - - name: Generate Tailwind Styles - run: npm run build-css - - name: Publish to NPM main tag - run: npm publish + run: pnpm run build:lib + - name: Publish to NPM + run: pnpm --filter @sikka/hawa publish --no-git-checks