Skip to content

Fix release workflow version detection #40

Fix release workflow version detection

Fix release workflow version detection #40

Workflow file for this run

name: Release and Publish
on:
push:
branches:
- main
pull_request:
permissions:
contents: write
jobs:
release-and-publish:
runs-on: ubuntu-latest
defaults:
run:
working-directory: precise
steps:
- name: Checkout repo
uses: actions/checkout@v6
with:
fetch-depth: 0
- id: debug_step_1
run: |
pwd
ls -lah
echo $GITHUB_WORKSPACE
- id: version
uses: EndBug/version-check@v2
with:
file-name: ./precise/package.json
# - if: steps.version.outputs.changed == 'true'
- id: debug_step_2
run: |
pwd
ls -lah
echo changed = ${{ steps.version.outputs.changed }}
echo version = ${{ steps.version.outputs.version }}
echo commit = ${{ steps.version.outputs.commit }}
echo type = ${{ steps.version.outputs.type }}
# - if: steps.version.outputs.changed == 'true'
# uses: softprops/action-gh-release@v2
# with:
# tag_name: ${{ steps.version.outputs.version }}
# name: ${{ steps.version.outputs.version }}
# generate_release_notes: true
#
# - if: steps.version.outputs.changed == 'true'
# uses: actions/setup-node@v6
# with:
# node-version: '24' # Use latest LTS version
# registry-url: https://registry.npmjs.org
#
# - if: steps.version.outputs.changed == 'true'
# run: |
# npm ci
# npm run build
# npm publish
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}