-
Notifications
You must be signed in to change notification settings - Fork 14
feat(ipa): IPA Package config, docs and release workflow #855
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
850499d
7b8ee1c
91b086f
1230f5d
c62b858
8145b39
af7742e
f4f3a09
7c424ce
7419c93
27ad395
edcbd8e
ddf873a
1bd1b87
a87eec7
5ef60b0
026a990
ada8f22
1dcd9e6
3f757c2
d07e18a
f81ef89
325f159
7ce67f1
54f865b
f252db0
4d20230
61caa35
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Release IPA Package | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'tools/spectral/ipa/package.json' | ||
|
||
jobs: | ||
check-version: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | ||
with: | ||
sparse-checkout: | | ||
tools/spectral/ipa | ||
- name: Check Version Bump | ||
working-directory: tools/spectral/ipa | ||
id: version_check | ||
run: | | ||
current_version=$(jq '.version' package.json) | ||
echo "Current version: $current_version" | ||
previous_version=$(git show origin/${{ github.event.pull_request.base.ref }}:tools/spectral/ipa/package.json | jq -r '.version') | ||
if [[ -z "$previous_version" || "$previous_version" == "null" ]]; then | ||
previous_version="none" | ||
fi | ||
echo "Previous version: $previous_version" | ||
|
||
if [[ "$previous_version" == "$current_version" ]]; then | ||
echo "No version bump to release". | ||
exit 0 | ||
fi | ||
publish: | ||
needs: check-version | ||
sphterry marked this conversation as resolved.
Show resolved
Hide resolved
|
||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
id-token: write | ||
|
||
steps: | ||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20.x' | ||
registry-url: 'https://registry.npmjs.org' | ||
- run: npm ci | ||
working-directory: tools/spectral/ipa | ||
- run: npm publish --access public | ||
working-directory: tools/spectral/ipa | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.IPA_VALIDATION_TOKEN }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
metrics | ||
|
||
scripts | ||
__tests__ |
Uh oh!
There was an error while loading. Please reload this page.