@amirdaraee/namewise 0.5.2 → 0.5.3

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.
@@ -1,18 +1,21 @@
1
1
  name: Auto Release
2
2
 
3
3
  on:
4
- push:
4
+ workflow_run:
5
+ workflows: ["Build Pipeline"]
6
+ types:
7
+ - completed
5
8
  branches: [ main ]
6
- paths:
7
- - 'package.json'
8
9
 
9
10
  jobs:
10
11
  check-version:
11
12
  runs-on: ubuntu-latest
13
+ # Only run if the build workflow succeeded
14
+ if: ${{ github.event.workflow_run.conclusion == 'success' }}
12
15
  outputs:
13
16
  should-release: ${{ steps.version-check.outputs.should-release }}
14
17
  new-version: ${{ steps.version-check.outputs.new-version }}
15
-
18
+
16
19
  steps:
17
20
  - name: Checkout code
18
21
  uses: actions/checkout@v4
@@ -3,8 +3,6 @@ name: Test Pipeline
3
3
  on:
4
4
  workflow_dispatch: # Allows manual triggering
5
5
  workflow_call: # Allows this workflow to be called by other workflows
6
- push:
7
- branches: [ main, develop ]
8
6
  pull_request:
9
7
  branches: [ main ]
10
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amirdaraee/namewise",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "bin": {