1- name : Publish V5 Alpha Packages
1+ name : Publish V5 Beta Packages
22
33# workflow dispatch requires a maintainer to go to the Actions tab and manually trigger the workflow
44on :
@@ -18,12 +18,12 @@ permissions:
1818
1919# Allow only one concurrent publish
2020concurrency :
21- group : publish-v5-alpha
21+ group : publish-v5-beta
2222 cancel-in-progress : false
2323
2424jobs :
25- publish_v5_alpha :
26- name : Build and Publish V5 Alpha
25+ publish_v5_beta :
26+ name : Build and Publish V5 Beta
2727 runs-on : ubuntu-latest
2828
2929 # Needed for Publishing
@@ -32,11 +32,11 @@ jobs:
3232 packages : write
3333
3434 steps :
35- # Always checkout moldy/v5-base , regardless of which branch the workflow file lives on
36- - name : Checkout moldy/v5-base branch
35+ # Always checkout v5.x.x , regardless of which branch the workflow file lives on
36+ - name : Checkout v5.x.x branch
3737 uses : actions/checkout@v3
3838 with :
39- ref : moldy/v5-base
39+ ref : v5.x.x
4040 token : ${{ secrets.ALCHEMY_BOT_PAT }}
4141 fetch-depth : " 0"
4242 submodules : " recursive"
8383 echo ""
8484 CURRENT_VERSION=$(node -p "require('./lerna.json').version")
8585 echo "Current version: $CURRENT_VERSION"
86- NEXT_VERSION=$(npx semver $CURRENT_VERSION -i prerelease --preid alpha )
86+ NEXT_VERSION=$(npx semver $CURRENT_VERSION -i prerelease --preid beta )
8787 echo "Next version: $NEXT_VERSION"
8888 echo ""
8989 echo "Packages that would be published:"
9898 run : |
9999 echo "Auto-incrementing prerelease version..."
100100 npx lerna version prerelease \
101- --preid alpha \
101+ --preid beta \
102102 --no-push \
103103 --no-git-tag-version \
104104 --yes \
@@ -123,16 +123,15 @@ jobs:
123123 run : |
124124 NEW_VERSION=$(node -p "require('./lerna.json').version")
125125 git add -A
126- git commit --no-verify -m "chore(v5): publish alpha version $NEW_VERSION [skip ci]"
126+ git commit --no-verify -m "chore(v5): publish beta version $NEW_VERSION [skip ci]"
127127
128128 # Publish packages from the updated package.json versions
129- - name : Publish V5 Alpha to NPM
129+ - name : Publish V5 Beta to NPM
130130 if : ${{ inputs.publish }}
131131 shell : bash
132132 run : |
133133 set +e
134134 npx lerna publish from-package \
135- --dist-tag alpha \
136135 --no-private \
137136 --no-verify-access \
138137 --yes \
@@ -165,9 +164,9 @@ jobs:
165164 echo "has_changes=true" >> $GITHUB_ENV
166165 echo "new_version=$NEW_VERSION" >> $GITHUB_ENV
167166
168- # Push commit and tags to moldy/v5-base
169- - name : Push Changes to moldy/v5-base
167+ # Push commit and tags to v5.x.x
168+ - name : Push Changes to v5.x.x
170169 if : ${{ inputs.publish && env.lerna_published == 'true' && env.has_changes == 'true' }}
171170 run : |
172- git push origin HEAD:moldy/v5-base --follow-tags
173- echo "Successfully pushed version ${{ env.new_version }} to moldy/v5-base "
171+ git push origin HEAD:v5.x.x --follow-tags
172+ echo "Successfully pushed version ${{ env.new_version }} to v5.x.x "
0 commit comments