Skip to content

Commit 6e9bdb9

Browse files
Update action
1 parent 17a7ae3 commit 6e9bdb9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

action.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,17 @@ runs:
6262
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
6363
restore-keys: |
6464
${{ runner.os }}-node-
65-
- name: Install NPM wporg-replace-helper package
66-
run: npm install https://github.com/sc0ttkclark/wporg-replace-helper
65+
- name: Install NPM dependencies
66+
run: npm install
6767
- name: Update plugin version
6868
if: "${{ inputs.plugin_version != '' }}"
69-
run: npm run update-plugin-version --plugin_version="${{ inputs.plugin_version }}" --plugin_version_constant_name="${{ inputs.plugin_version_constant_name }}" --plugin_file="${{ inputs.plugin_file }}" --plugin_path="${{ inputs.plugin_path }}"
69+
run: npm explore wporg-replace-helper -- npm run update-plugin-version --plugin_version="${{ inputs.plugin_version }}" --plugin_version_constant_name="${{ inputs.plugin_version_constant_name }}" --plugin_file="${{ inputs.plugin_file }}" --plugin_path="${{ inputs.plugin_path }}"
7070
- name: Update tested WP version
7171
if: "${{ inputs.tested_wp_version != '' }}"
72-
run: npm run update-tested-wp-version --tested_wp_version="${{ inputs.tested_wp_version }}" --tested_wp_version_constant_name="${{ inputs.tested_wp_version_constant_name }}" --plugin_file="${{ inputs.plugin_file }}" --plugin_path="${{ inputs.plugin_path }}"
72+
run: npm explore wporg-replace-helper -- npm run update-tested-wp-version --tested_wp_version="${{ inputs.tested_wp_version }}" --tested_wp_version_constant_name="${{ inputs.tested_wp_version_constant_name }}" --plugin_file="${{ inputs.plugin_file }}" --plugin_path="${{ inputs.plugin_path }}"
7373
- name: Update minimum WP version
7474
if: "${{ inputs.minimum_wp_version != '' }}"
75-
run: npm run update-minimum-wp-version --minimum_wp_version="${{ inputs.minimum_wp_version }}" --minimum_wp_version_constant_name="${{ inputs.minimum_wp_version_constant_name }}" --plugin_file="${{ inputs.plugin_file }}" --plugin_path="${{ inputs.plugin_path }}"
75+
run: npm explore wporg-replace-helper -- npm run update-minimum-wp-version --minimum_wp_version="${{ inputs.minimum_wp_version }}" --minimum_wp_version_constant_name="${{ inputs.minimum_wp_version_constant_name }}" --plugin_file="${{ inputs.plugin_file }}" --plugin_path="${{ inputs.plugin_path }}"
7676
- name: Update minimum PHP version
7777
if: "${{ inputs.minimum_php_version != '' }}"
78-
run: npm run update-minimum-php-version --minimum_php_version="${{ inputs.minimum_php_version }}" --minimum_php_version_constant_name="${{ inputs.minimum_php_version_constant_name }}" --plugin_file="${{ inputs.plugin_file }}" --plugin_path="${{ inputs.plugin_path }}"
78+
run: npm explore wporg-replace-helper -- npm run update-minimum-php-version --minimum_php_version="${{ inputs.minimum_php_version }}" --minimum_php_version_constant_name="${{ inputs.minimum_php_version_constant_name }}" --plugin_file="${{ inputs.plugin_file }}" --plugin_path="${{ inputs.plugin_path }}"

0 commit comments

Comments
 (0)