Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Commit

Permalink
fix: add swift version tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
braddialpad committed Nov 23, 2022
1 parent c1d7a13 commit 089d3e4
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
node_modules
dist*/*
!dist_ios/Package.swift
!dist_ios/.github
tokens
.gradle
local.properties
18 changes: 18 additions & 0 deletions dist_ios/.github/workflows/tag-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Tag version

on:
push:
branches:
- main

jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: tag most recent commit
run: git tag $(cat VERSION) HEAD

- name: push tags
run: git push origin $(cat VERSION)
2 changes: 1 addition & 1 deletion release-local.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = {
message: 'chore(release): ${nextRelease.version} \n\n${nextRelease.notes}',
}],
["@semantic-release/exec", {
"prepareCmd": "./gradlew setProperties -Pversion=${nextRelease.version} && git add -A && git commit -m 'chore(release): ${nextRelease.version} gradle' && git push"
"prepareCmd": "./gradlew setProperties -Pversion=${nextRelease.version} && echo '${nextRelease.version}' > ./dist_ios/VERSION && git add -A && git commit -m 'chore(release): ${nextRelease.version} gradle' && git push"
}],
],
};

0 comments on commit 089d3e4

Please sign in to comment.