Release #21
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
workflow_dispatch: {} | |
push: | |
branches: | |
- main | |
jobs: | |
# linting: | |
# uses: ./.github/workflows/linting.yml | |
# | |
# tests: | |
# uses: ./.github/workflows/tests.yml | |
# | |
# build: | |
# uses: ./.github/workflows/build.yml | |
release: | |
name: Release | |
# needs: [linting, tests, build] | |
runs-on: macos-13 | |
permissions: | |
contents: write | |
issues: write | |
pull-requests: write | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
# pulls all commits (needed for semantic release to correctly version) | |
fetch-depth: '0' | |
persist-credentials: false | |
- name: Install Dependencies | |
run: | | |
bundle install | |
npm install | |
- name: GitHub Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: npx semantic-release@21 | |
- name: Publish to CocoaPods | |
env: | |
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} | |
run: bundle exec fastlane publish |