@fireberry/cli 0.4.2 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/main.yml +26 -0
- package/package.json +1 -1
|
@@ -125,6 +125,32 @@ jobs:
|
|
|
125
125
|
git push origin --tags
|
|
126
126
|
echo "Successfully pushed commit and tags"
|
|
127
127
|
|
|
128
|
+
- name: Sync dev branch with production version
|
|
129
|
+
if: steps.detect-type.outputs.type == 'production'
|
|
130
|
+
run: |
|
|
131
|
+
PROD_VERSION=${{ steps.version-prod.outputs.version }}
|
|
132
|
+
echo "Syncing dev branch to ${PROD_VERSION}-beta.0"
|
|
133
|
+
|
|
134
|
+
# Fetch latest dev branch
|
|
135
|
+
git fetch origin dev
|
|
136
|
+
|
|
137
|
+
# Checkout dev branch
|
|
138
|
+
git checkout dev
|
|
139
|
+
git pull origin dev
|
|
140
|
+
|
|
141
|
+
# Update version to production version with -beta.0 suffix
|
|
142
|
+
npm version ${PROD_VERSION}-beta.0 --no-git-tag-version --allow-same-version
|
|
143
|
+
|
|
144
|
+
# Commit and push to dev
|
|
145
|
+
git add package.json package-lock.json
|
|
146
|
+
git commit -m "chore: sync dev to v${PROD_VERSION}-beta.0 after production release [skip ci]"
|
|
147
|
+
git push origin dev
|
|
148
|
+
|
|
149
|
+
echo "Successfully synced dev branch to ${PROD_VERSION}-beta.0"
|
|
150
|
+
|
|
151
|
+
# Switch back to main branch
|
|
152
|
+
git checkout main
|
|
153
|
+
|
|
128
154
|
- name: Publish to npm (Beta)
|
|
129
155
|
if: steps.detect-type.outputs.type == 'beta'
|
|
130
156
|
run: |
|