Skip to content

Commit d74883b

Browse files
fix: release workflow
1 parent 7e493e2 commit d74883b

File tree

1 file changed

+42
-42
lines changed

1 file changed

+42
-42
lines changed

.github/workflows/ipa-release.yml

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -44,46 +44,46 @@ jobs:
4444
echo "Current version: ${current_version}"
4545
echo "current_version=${current_version}" >> "${GITHUB_OUTPUT}"
4646
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 }}
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 }}
8989

0 commit comments

Comments
 (0)