-
Notifications
You must be signed in to change notification settings - Fork 57
26 lines (25 loc) · 798 Bytes
/
tag.yaml
File metadata and controls
26 lines (25 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
on:
workflow_call:
jobs:
tag:
runs-on: ubuntu-22.04
steps:
- name: wait-job
run: sleep 10s
shell: bash
- uses: actions/checkout@v4
with:
ref: main
- name: Retrieve Version
id: tagVersion
run: |
echo "version=$(awk '/version/{gsub(/("|",)/,"",$2);print $2}' lerna.json)"
echo "version=$(awk '/version/{gsub(/("|",)/,"",$2);print $2}' lerna.json)" >> "$GITHUB_OUTPUT"
- name: Tag version
run: |
git config user.name github-actions
git config user.email noreply@github.com
git tag -a v$VERSION_NUMBER -m "v$VERSION_NUMBER"
git push origin v$VERSION_NUMBER --no-verify
env:
VERSION_NUMBER: ${{ steps.tagVersion.outputs.version }}