Skip to content

Commit 3304fd8

Browse files
committed
publish pipeline changes
1 parent ba6986a commit 3304fd8

File tree

1 file changed

+10
-50
lines changed

1 file changed

+10
-50
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,16 @@ jobs:
6868
git commit -m "Bump version to ${{ steps.version.outputs.version }} [skip ci]"
6969
git push origin HEAD:${{ steps.branch.outputs.source_branch }}
7070
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+
7181
- name: Upload package files
7282
uses: actions/upload-artifact@v4
7383
with:
@@ -107,56 +117,6 @@ jobs:
107117
name: build-output
108118
path: dist/
109119

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-
160120
publish:
161121
runs-on: ubuntu-latest
162122
needs: [build]

0 commit comments

Comments
 (0)