diff --git a/.github/workflows/ci-release.yml b/.github/workflows/ci-release.yml index 16f91e60..0a7498aa 100644 --- a/.github/workflows/ci-release.yml +++ b/.github/workflows/ci-release.yml @@ -39,9 +39,27 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: "Main Package Version Bump" + if: github.event_name != 'pull_request' + id: main-version + uses: "phips28/gh-action-bump-version@master" + with: + tag-prefix: "v" + skip-tag: true + + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PACKAGEJSON_DIR: 'packages/main' + - name: "version check" if: github.event_name != 'pull_request' run: echo ${{steps.version.outputs.newTag}} + + - name: "main version check" + if: github.event_name != 'pull_request' + run: echo ${{steps.main-version.outputs.newTag}} + - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: diff --git a/packages/main/package.json b/packages/main/package.json index 5c838d9c..8fc4cad0 100644 --- a/packages/main/package.json +++ b/packages/main/package.json @@ -1,7 +1,7 @@ { "name": "@ui/main", "private": true, - "version": "1.0", + "version": "1.0.0", "type": "module", "scripts": { "dev": "VITE_APP_VERSION=$npm_package_version vite",