qovery-typescript-axios 1.1.25 → 1.1.37

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.
@@ -9,9 +9,10 @@
9
9
  name: Upload NPM Package
10
10
 
11
11
  on:
12
- push:
13
- tags:
14
- - 'v*'
12
+ workflow_run:
13
+ workflows: [ "Tagging" ]
14
+ types:
15
+ - completed
15
16
 
16
17
  jobs:
17
18
  deploy:
@@ -30,4 +31,4 @@ jobs:
30
31
  - name: Publish package
31
32
  run: npm publish
32
33
  env:
33
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
34
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -0,0 +1,43 @@
1
+ name: Tagging
2
+
3
+ on:
4
+ push:
5
+ branches: ['main']
6
+
7
+ jobs:
8
+ build:
9
+ name: Bump tag
10
+ runs-on: ubuntu-latest
11
+
12
+ steps:
13
+ - uses: actions/checkout@v2
14
+
15
+ - name: Create an incremental release
16
+ uses: aurestic/incrementarl-create-release@master
17
+ with:
18
+ flag_branch: false
19
+ message: Bump version
20
+ prev_tag: 'v'
21
+ env:
22
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23
+
24
+ - name: Save last tag to file
25
+ run: |
26
+ echo "LAST_TAG=$(git describe --abbrev=0 --tags)" >> $GITHUB_ENV
27
+
28
+ - name: Replace tag in package.json and commit it the changes
29
+ run: |
30
+ sed -i "s/\"version\": \".*\"/\"version\": \"$LAST_TAG\"/g" package.json
31
+
32
+ - name: Setup Git
33
+ run: |
34
+ git config user.name 'Qovery Bot'
35
+ git config user.email 'github@qovery.com'
36
+
37
+ - name: commit changes
38
+ run: |
39
+ git add package.json
40
+ git commit -m "chore: bump version to $LAST_TAG"
41
+ git push origin main
42
+
43
+