From 88425fa8573f39be54efffd03d117517635c544c Mon Sep 17 00:00:00 2001 From: khoilen Date: Mon, 6 Jan 2025 11:18:45 +0700 Subject: [PATCH] style: update public yml file --- .github/workflows/publish-nt-css.yml | 26 ++++++-------------------- apps/nt-stylesheet/package.json | 2 +- 2 files changed, 7 insertions(+), 21 deletions(-) diff --git a/.github/workflows/publish-nt-css.yml b/.github/workflows/publish-nt-css.yml index 4805b8f..be041ea 100644 --- a/.github/workflows/publish-nt-css.yml +++ b/.github/workflows/publish-nt-css.yml @@ -1,8 +1,9 @@ name: 'Publish NT CSS Framework' on: - release: - types: [created] + push: + branches: + - main workflow_dispatch: jobs: @@ -23,31 +24,16 @@ jobs: - name: Install pnpm run: npm install -g pnpm - - name: Set up PNPM_HOME and PATH - run: | - echo "PNPM_HOME=$HOME/.local/share/pnpm" >> $GITHUB_ENV - echo "PATH=$HOME/.local/share/pnpm:$PATH" >> $GITHUB_ENV - mkdir -p $HOME/.local/share/pnpm - export PNPM_HOME=$HOME/.local/share/pnpm - export PATH=$PNPM_HOME:$PATH - - name: Install dependencies - run: pnpm install + run: pnpm install --frozen-lockfile working-directory: apps/nt-stylesheet - name: Test CSS framework - run: pnpm run test + run: pnpm test working-directory: apps/nt-stylesheet - name: Build CSS framework - run: pnpm run build - working-directory: apps/nt-stylesheet - - - name: Update package version - run: | - TAG=${{ github.event.release.tag_name }} - echo "Using release tag: $TAG" - npm version $TAG --no-git-tag-version --allow-same-version + run: pnpm build working-directory: apps/nt-stylesheet - name: Publish to npm diff --git a/apps/nt-stylesheet/package.json b/apps/nt-stylesheet/package.json index 11e1aa7..9d7b906 100644 --- a/apps/nt-stylesheet/package.json +++ b/apps/nt-stylesheet/package.json @@ -1,6 +1,6 @@ { "name": "@nashtech/nt-stylesheet", - "version": "0.0.0-development", + "version": "1.0.0-beta.1", "description": "Style sheet for the NT Design System", "packageManager": "pnpm@9.0.5", "scripts": {