vanilla-jet 1.0.28 → 1.0.29
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/deploy.yml +26 -8
- package/package.json +1 -1
|
@@ -30,11 +30,29 @@ jobs:
|
|
|
30
30
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
31
31
|
run: npm publish
|
|
32
32
|
|
|
33
|
-
- name:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
33
|
+
- name: Configure git identity
|
|
34
|
+
run: |
|
|
35
|
+
git config --global user.email "actions@github.com"
|
|
36
|
+
git config --global user.name "GitHub Actions"
|
|
37
|
+
|
|
38
|
+
- name: Get version from package.json
|
|
39
|
+
id: get_version
|
|
40
|
+
run: echo "::set-output name=version::$(node -p "require('./package.json').version")"
|
|
41
|
+
|
|
42
|
+
- name: Check if tag exists
|
|
43
|
+
run: |
|
|
44
|
+
if git rev-parse v${{ steps.get_version.outputs.version }} >/dev/null 2>&1; then
|
|
45
|
+
echo "Tag v${{ steps.get_version.outputs.version }} already exists"
|
|
46
|
+
fi
|
|
47
|
+
|
|
48
|
+
- name: Remove existing tag if exists
|
|
49
|
+
run: |
|
|
50
|
+
if git rev-parse v${{ steps.get_version.outputs.version }} >/dev/null 2>&1; then
|
|
51
|
+
git push --delete origin v${{ steps.get_version.outputs.version }}
|
|
52
|
+
git tag -d v${{ steps.get_version.outputs.version }}
|
|
53
|
+
fi
|
|
54
|
+
|
|
55
|
+
- name: Create tag
|
|
56
|
+
run: |
|
|
57
|
+
git tag -a v${{ steps.get_version.outputs.version }} -m "Version ${{ steps.get_version.outputs.version }}"
|
|
58
|
+
git push origin v${{ steps.get_version.outputs.version }}
|