|
68 | 68 | git commit -m "Bump version to ${{ steps.version.outputs.version }} [skip ci]"
|
69 | 69 | git push origin HEAD:${{ steps.branch.outputs.source_branch }}
|
70 | 70 |
|
| 71 | + - name: Rename tag for develop branch |
| 72 | + if: steps.branch.outputs.source_branch == 'develop' |
| 73 | + run: | |
| 74 | + TIMESTAMP=$(date -u +"%Y%m%d%H%M%S") |
| 75 | + NEW_TAG="v${{ steps.version.outputs.version }}-dev$TIMESTAMP" |
| 76 | + echo "New tag: $NEW_TAG" |
| 77 | + git tag $NEW_TAG ${{ github.sha }} |
| 78 | + git push origin :refs/tags/${{ github.ref_name }} |
| 79 | + git push origin $NEW_TAG |
| 80 | +
|
71 | 81 | - name: Upload package files
|
72 | 82 | uses: actions/upload-artifact@v4
|
73 | 83 | with:
|
@@ -107,56 +117,6 @@ jobs:
|
107 | 117 | name: build-output
|
108 | 118 | path: dist/
|
109 | 119 |
|
110 |
| -# lint: |
111 |
| -# runs-on: ubuntu-latest |
112 |
| -# needs: version |
113 |
| -# |
114 |
| -# steps: |
115 |
| -# - name: Download package files |
116 |
| -# uses: actions/download-artifact@v4 |
117 |
| -# with: |
118 |
| -# name: package-files |
119 |
| -# path: . |
120 |
| -# |
121 |
| -# - name: Checkout code |
122 |
| -# uses: actions/checkout@v4 |
123 |
| -# |
124 |
| -# - name: Set up Node.js |
125 |
| -# uses: actions/setup-node@v4 |
126 |
| -# with: |
127 |
| -# node-version: ${{ env.NODE_VERSION }} |
128 |
| -# |
129 |
| -# - name: Install dependencies |
130 |
| -# run: npm install |
131 |
| -# |
132 |
| -# - name: Run linting |
133 |
| -# run: npm run lint |
134 |
| - |
135 |
| -# test: |
136 |
| -# runs-on: ubuntu-latest |
137 |
| -# needs: version |
138 |
| -# |
139 |
| -# steps: |
140 |
| -# - name: Download package files |
141 |
| -# uses: actions/download-artifact@v4 |
142 |
| -# with: |
143 |
| -# name: package-files |
144 |
| -# path: . |
145 |
| -# |
146 |
| -# - name: Checkout code |
147 |
| -# uses: actions/checkout@v4 |
148 |
| -# |
149 |
| -# - name: Set up Node.js |
150 |
| -# uses: actions/setup-node@v4 |
151 |
| -# with: |
152 |
| -# node-version: ${{ env.NODE_VERSION }} |
153 |
| -# |
154 |
| -# - name: Install dependencies |
155 |
| -# run: npm install |
156 |
| -# |
157 |
| -# - name: Run tests |
158 |
| -# run: npm test:unit |
159 |
| - |
160 | 120 | publish:
|
161 | 121 | runs-on: ubuntu-latest
|
162 | 122 | needs: [build]
|
|
0 commit comments