Skip to content

Commit 26e9836

Browse files
fix: test fix
1 parent c4b7b87 commit 26e9836

File tree

1 file changed

+45
-43
lines changed

1 file changed

+45
-43
lines changed

.github/workflows/ipa-release.yml

Lines changed: 45 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -40,48 +40,50 @@ jobs:
4040
version_changed=$(./.github/scripts/ipa_version_check.sh)
4141
echo "Version changed? ${version_changed}"
4242
echo "version_changed=${version_changed}" >> "${GITHUB_OUTPUT}"
43-
echo "current_version=${jq -r '.version' tools/spectral/ipa/package.json}" >> "${GITHUB_OUTPUT}"
43+
current_version=${jq -r '.version' tools/spectral/ipa/package.json}
44+
echo "Current version: ${current_version}"
45+
echo "current_version=${current_version}" >> "${GITHUB_OUTPUT}"
4446
45-
create-tag:
46-
runs-on: ubuntu-latest
47-
needs: check-version
48-
if: >-
49-
!cancelled()
50-
&& inputs.use_existing_tag == 'false'
51-
steps:
52-
- name: Validation of version format
53-
run: |
54-
echo "${{ needs.check-version.outputs.current_version }}" | grep -P '^\d+\.\d+\.\d+$'
55-
- name: Checkout
56-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
57-
- name: Get the latest commit SHA
58-
id: get-sha
59-
run: echo "sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
60-
- name: Create release tag
61-
uses: rickstaa/action-create-tag@a1c7777fcb2fee4f19b0f283ba888afa11678b72
62-
with:
63-
tag: 'ipa-validation-ruleset-v${{ needs.check-version.outputs.current_version }}'
64-
commit_sha: ${{ steps.get-sha.outputs.sha }}
65-
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
66-
gpg_passphrase: ${{ secrets.PASSPHRASE }}
67-
68-
publish:
69-
needs: check-version
70-
runs-on: ubuntu-latest
71-
permissions:
72-
contents: read
73-
id-token: write
74-
if: ${{ needs.check-version.outputs.version_changed == 'true' || inputs.workflow_call }}
75-
steps:
76-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
77-
- uses: actions/setup-node@v4
78-
with:
79-
node-version: '20.x'
80-
registry-url: 'https://registry.npmjs.org'
81-
- run: npm ci
82-
working-directory: tools/spectral/ipa
83-
- run: npm publish --access public
84-
working-directory: tools/spectral/ipa
85-
env:
86-
NODE_AUTH_TOKEN: ${{ secrets.IPA_VALIDATION_NPM_TOKEN }}
47+
# create-tag:
48+
# runs-on: ubuntu-latest
49+
# needs: check-version
50+
# if: >-
51+
# !cancelled()
52+
# && inputs.use_existing_tag == 'false'
53+
# steps:
54+
# - name: Validation of version format
55+
# run: |
56+
# echo "${{ needs.check-version.outputs.current_version }}" | grep -P '^\d+\.\d+\.\d+$'
57+
# - name: Checkout
58+
# uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
59+
# - name: Get the latest commit SHA
60+
# id: get-sha
61+
# run: echo "sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
62+
# - name: Create release tag
63+
# uses: rickstaa/action-create-tag@a1c7777fcb2fee4f19b0f283ba888afa11678b72
64+
# with:
65+
# tag: 'ipa-validation-ruleset-v${{ needs.check-version.outputs.current_version }}'
66+
# commit_sha: ${{ steps.get-sha.outputs.sha }}
67+
# gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
68+
# gpg_passphrase: ${{ secrets.PASSPHRASE }}
69+
#
70+
# publish:
71+
# needs: check-version
72+
# runs-on: ubuntu-latest
73+
# permissions:
74+
# contents: read
75+
# id-token: write
76+
# if: ${{ needs.check-version.outputs.version_changed == 'true' || inputs.workflow_call }}
77+
# steps:
78+
# - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
79+
# - uses: actions/setup-node@v4
80+
# with:
81+
# node-version: '20.x'
82+
# registry-url: 'https://registry.npmjs.org'
83+
# - run: npm ci
84+
# working-directory: tools/spectral/ipa
85+
# - run: npm publish --access public
86+
# working-directory: tools/spectral/ipa
87+
# env:
88+
# NODE_AUTH_TOKEN: ${{ secrets.IPA_VALIDATION_NPM_TOKEN }}
8789

0 commit comments

Comments
 (0)