diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 7cde0e48..eb45ddda 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -40,12 +40,7 @@ jobs: - name: Build run: npm run build + # Always publish under the beta dist-tag. Promote to latest manually: + # npm dist-tag add @agility/cli@ latest - name: Publish - run: | - PKG_VERSION=$(node -p "require('./package.json').version") - PRERELEASE_TAG=$(echo "$PKG_VERSION" | grep -oP '(?<=-)\w+' | head -1 || true) - if [ -n "$PRERELEASE_TAG" ]; then - npm publish --access public --tag "$PRERELEASE_TAG" - else - npm publish --access public - fi + run: npm publish --access public --tag beta diff --git a/package.json b/package.json index db93f422..238f1a33 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@agility/cli", - "version": "1.0.0", + "version": "1.0.1", "repository": { "type": "git", "url": "https://github.com/agility/agility-cli.git"