-
Notifications
You must be signed in to change notification settings - Fork 13
30 lines (23 loc) · 1.07 KB
/
deployment-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Can only run on push events, not pull requests.
# PRs on github generate weird branch names that semantic-release does not support.
on: [push]
concurrency: # cancel previous workflow run if one exists.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
deployment:
runs-on: macos-14 # because cocoapods is already installed on these machines
permissions:
contents: write # to set permissions for semantic-release dry-run to pass
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: setup git user to run semantic-release
run: |
git config --global user.email "[email protected]"
git config --global user.name "Example User"
- uses: ./.github/actions/setup-semantic-release
- name: Run semantic-release in dry run
run: unset GITHUB_ACTIONS && npx semantic-release --dry-run --no-ci --branches "${{ github.ref_name }},main"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}