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.
@@ -30,11 +30,29 @@ jobs:
30
30
  NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
31
31
  run: npm publish
32
32
 
33
- - name: Create GitHub Release
34
- uses: softprops/action-gh-release@v1
35
- with:
36
- files: |
37
- dist/**
38
- package.json
39
- env:
40
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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 }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vanilla-jet",
3
- "version": "1.0.28",
3
+ "version": "1.0.29",
4
4
  "description": "VannilaJet framework",
5
5
  "main": "index.js",
6
6
  "bin": {