Skip to content

Commit

Permalink
style: update public yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
khoilen committed Jan 6, 2025
1 parent 75ccf0e commit 88425fa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 21 deletions.
26 changes: 6 additions & 20 deletions .github/workflows/publish-nt-css.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: 'Publish NT CSS Framework'

on:
release:
types: [created]
push:
branches:
- main
workflow_dispatch:

jobs:
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion apps/nt-stylesheet/package.json
Original file line number Diff line number Diff line change
@@ -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": "[email protected]",
"scripts": {
Expand Down

0 comments on commit 88425fa

Please sign in to comment.