diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4a0ad06..5d9641d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,9 +24,18 @@ jobs: fetch-depth: 0 token: ${{ secrets.GH_PAT }} + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 22 + - name: Read version from package.json id: version - run: echo "version=$(node -p 'require(\"./package.json\").version')" >> "$GITHUB_OUTPUT" + run: | + VERSION=$(node -p "require('./package.json').version") + echo "Version: $VERSION" + if [ -z "$VERSION" ]; then echo "ERROR: version is empty" && exit 1; fi + echo "version=$VERSION" >> "$GITHUB_OUTPUT" - name: Update version in index.html run: | diff --git a/package-lock.json b/package-lock.json index 4255dda..1a89b92 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "flexitablesort", - "version": "2.0.13", + "version": "2.0.14", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "flexitablesort", - "version": "2.0.13", + "version": "2.0.14", "license": "MIT", "dependencies": { "classnames": "^2.5.1", diff --git a/package.json b/package.json index 68c7043..278f03d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-table-dnd", - "version": "2.0.13", + "version": "2.0.14", "type": "module", "description": "Sortable table with draggable rows and columns", "main": "dist/index.cjs.js",