|
1 | | -name: Release CLI Plugins (v1 Beta) |
| 1 | +name: Release CLI Plugins (Production) |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | push: |
5 | | - branches: [v1-beta] |
| 5 | + branches: [main] |
6 | 6 |
|
7 | 7 | jobs: |
8 | 8 | build: |
@@ -39,112 +39,112 @@ jobs: |
39 | 39 | prefix: release |
40 | 40 |
|
41 | 41 | # Variants |
42 | | - - name: Publishing variants (Beta) |
| 42 | + - name: Publishing variants (Production) |
43 | 43 | uses: JS-DevTools/npm-publish@v3 |
44 | 44 | with: |
45 | 45 | token: ${{ secrets.NPM_TOKEN }} |
46 | 46 | package: ./packages/contentstack-variants/package.json |
47 | | - tag: beta |
| 47 | + tag: latest |
48 | 48 |
|
49 | 49 | # Export |
50 | | - - name: Publishing export (Beta) |
| 50 | + - name: Publishing export (Production) |
51 | 51 | uses: JS-DevTools/npm-publish@v3 |
52 | 52 | with: |
53 | 53 | token: ${{ secrets.NPM_TOKEN }} |
54 | 54 | package: ./packages/contentstack-export/package.json |
55 | | - tag: beta |
| 55 | + tag: latest |
56 | 56 |
|
57 | 57 | # Audit |
58 | | - - name: Publishing audit (Beta) |
| 58 | + - name: Publishing audit (Production) |
59 | 59 | uses: JS-DevTools/npm-publish@v3 |
60 | 60 | with: |
61 | 61 | token: ${{ secrets.NPM_TOKEN }} |
62 | 62 | package: ./packages/contentstack-audit/package.json |
63 | | - tag: beta |
| 63 | + tag: latest |
64 | 64 |
|
65 | 65 | # Import |
66 | | - - name: Publishing import (Beta) |
| 66 | + - name: Publishing import (Production) |
67 | 67 | uses: JS-DevTools/npm-publish@v3 |
68 | 68 | with: |
69 | 69 | token: ${{ secrets.NPM_TOKEN }} |
70 | 70 | package: ./packages/contentstack-import/package.json |
71 | | - tag: beta |
| 71 | + tag: latest |
72 | 72 |
|
73 | 73 | # Clone |
74 | | - - name: Publishing clone (Beta) |
| 74 | + - name: Publishing clone (Production) |
75 | 75 | uses: JS-DevTools/npm-publish@v3 |
76 | 76 | with: |
77 | 77 | token: ${{ secrets.NPM_TOKEN }} |
78 | 78 | package: ./packages/contentstack-clone/package.json |
79 | | - tag: beta |
| 79 | + tag: latest |
80 | 80 |
|
81 | 81 | # Import Setup |
82 | | - - name: Publishing import-setup (Beta) |
| 82 | + - name: Publishing import-setup (Production) |
83 | 83 | uses: JS-DevTools/npm-publish@v3 |
84 | 84 | with: |
85 | 85 | token: ${{ secrets.NPM_TOKEN }} |
86 | 86 | package: ./packages/contentstack-import-setup/package.json |
87 | | - tag: beta |
| 87 | + tag: latest |
88 | 88 |
|
89 | 89 | # Export to CSV |
90 | | - - name: Publishing export to csv (Beta) |
| 90 | + - name: Publishing export to csv (Production) |
91 | 91 | uses: JS-DevTools/npm-publish@v3 |
92 | 92 | with: |
93 | 93 | token: ${{ secrets.NPM_TOKEN }} |
94 | 94 | package: ./packages/contentstack-export-to-csv/package.json |
95 | | - tag: beta |
| 95 | + tag: latest |
96 | 96 |
|
97 | 97 | # Migration |
98 | | - - name: Publishing migration (Beta) |
| 98 | + - name: Publishing migration (Production) |
99 | 99 | uses: JS-DevTools/npm-publish@v3 |
100 | 100 | with: |
101 | 101 | token: ${{ secrets.NPM_TOKEN }} |
102 | 102 | package: ./packages/contentstack-migration/package.json |
103 | | - tag: beta |
| 103 | + tag: latest |
104 | 104 |
|
105 | 105 | # Seed |
106 | | - - name: Publishing seed (Beta) |
| 106 | + - name: Publishing seed (Production) |
107 | 107 | uses: JS-DevTools/npm-publish@v3 |
108 | 108 | with: |
109 | 109 | token: ${{ secrets.NPM_TOKEN }} |
110 | 110 | package: ./packages/contentstack-seed/package.json |
111 | | - tag: beta |
| 111 | + tag: latest |
112 | 112 |
|
113 | 113 | # Bootstrap |
114 | | - - name: Publishing bootstrap (Beta) |
| 114 | + - name: Publishing bootstrap (Production) |
115 | 115 | uses: JS-DevTools/npm-publish@v3 |
116 | 116 | with: |
117 | 117 | token: ${{ secrets.NPM_TOKEN }} |
118 | 118 | package: ./packages/contentstack-bootstrap/package.json |
119 | | - tag: beta |
| 119 | + tag: latest |
120 | 120 |
|
121 | 121 | # Bulk Publish |
122 | | - - name: Publishing bulk publish (Beta) |
| 122 | + - name: Publishing bulk publish (Production) |
123 | 123 | uses: JS-DevTools/npm-publish@v3 |
124 | 124 | with: |
125 | 125 | token: ${{ secrets.NPM_TOKEN }} |
126 | 126 | package: ./packages/contentstack-bulk-publish/package.json |
127 | | - tag: beta |
| 127 | + tag: latest |
128 | 128 |
|
129 | 129 | # Branches |
130 | | - - name: Publishing branches (Beta) |
| 130 | + - name: Publishing branches (Production) |
131 | 131 | uses: JS-DevTools/npm-publish@v3 |
132 | 132 | with: |
133 | 133 | token: ${{ secrets.NPM_TOKEN }} |
134 | 134 | package: ./packages/contentstack-branches/package.json |
135 | | - tag: beta |
| 135 | + tag: latest |
136 | 136 |
|
137 | | - - name: Create Beta Release |
| 137 | + - name: Create Production Release |
138 | 138 | id: create_release |
139 | 139 | env: |
140 | 140 | GITHUB_TOKEN: ${{ secrets.PKG_TOKEN }} |
141 | | - VERSION: ${{ steps.publish-core.outputs.version }} |
| 141 | + VERSION: ${{ steps.publish-plugins.outputs.version }} |
142 | 142 | run: | |
143 | | - # Get the previous beta release for comparison |
144 | | - PREVIOUS_BETA=$(gh release list --limit 10 | grep 'beta' | head -1 | cut -f1) |
| 143 | + # Get the previous production release for comparison |
| 144 | + PREVIOUS_PROD=$(gh release list --limit 10 | grep -v 'prerelease' | head -1 | cut -f1) |
145 | 145 |
|
146 | | - if [ -n "$PREVIOUS_BETA" ]; then |
147 | | - gh release create v"$VERSION" --title "Beta Release $VERSION" --notes-from-tag "$PREVIOUS_BETA" --prerelease |
| 146 | + if [ -n "$PREVIOUS_PROD" ]; then |
| 147 | + gh release create "v${VERSION}" --title "Production Release $VERSION" --notes-from-tag "$PREVIOUS_PROD" |
148 | 148 | else |
149 | | - gh release create v"$VERSION" --title "Beta Release $VERSION" --generate-notes --prerelease |
| 149 | + gh release create "v${VERSION}" --title "Production Release $VERSION" --generate-notes |
150 | 150 | fi |
0 commit comments