File tree Expand file tree Collapse file tree 4 files changed +18
-145
lines changed Expand file tree Collapse file tree 4 files changed +18
-145
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3131 app_build_command : ' pnpm website build'
3232 action : ' upload'
3333 skip_api_build : true
34+ deployment_environment : ' dev'
3435 env :
3536 CUSTOM_BUILD_COMMAND : corepack enable && corepack prepare pnpm@10.9.0 --activate && pnpm install --frozen-lockfile && pnpm ui build && pnpm website build
3637 ENABLE_NODE_MONOREPO_BUILD : true
Original file line number Diff line number Diff line change 4242 - name : Build Documentation
4343 run : pnpm website build
4444
45+ - name : Check if version changed
46+ id : version-check
47+ run : |
48+ CURRENT_VERSION=$(node -p "require('./package.json').version")
49+ PUBLISHED_VERSION=$(npm view @axiomhq/axiom-ui-components version 2>/dev/null || echo "0.0.0")
50+ echo "current-version=$CURRENT_VERSION" >> $GITHUB_OUTPUT
51+ echo "published-version=$PUBLISHED_VERSION" >> $GITHUB_OUTPUT
52+ if [ "$CURRENT_VERSION" != "$PUBLISHED_VERSION" ]; then
53+ echo "version-changed=true" >> $GITHUB_OUTPUT
54+ echo "Version changed from $PUBLISHED_VERSION to $CURRENT_VERSION"
55+ else
56+ echo "version-changed=false" >> $GITHUB_OUTPUT
57+ echo "Version unchanged: $CURRENT_VERSION"
58+ fi
59+
4560 - name : Publish NPM Package
61+ if : steps.version-check.outputs.version-changed == 'true'
4662 run : pnpm publish --access public
4763 env :
4864 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
5773 app_build_command : ' pnpm website build'
5874 action : ' upload'
5975 skip_api_build : true
76+ deployment_environment : ' release'
6077 env :
6178 CUSTOM_BUILD_COMMAND : corepack enable && corepack prepare pnpm@10.9.0 --activate && pnpm install --frozen-lockfile && pnpm ui build && pnpm website build
6279 ENABLE_NODE_MONOREPO_BUILD : true
You can’t perform that action at this time.
0 commit comments