Skip to content

Commit 14ee1bc

Browse files
committed
Set new package version automatically
1 parent 5698844 commit 14ee1bc

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

.github/workflows/prepare.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Prepare release
2+
3+
on:
4+
push:
5+
branches: [ automate-versioning ]
6+
7+
jobs:
8+
prepare-release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0
15+
- name: Fetch the lastest release version
16+
id: fetch_latest_release
17+
uses: thebritican/fetch-latest-release@v1
18+
with:
19+
github_token: ${{ secrets.PUSHER_CI_GITHUB_PRIVATE_TOKEN }}
20+
- uses: actions/checkout@v2
21+
with:
22+
repository: pusher/actions
23+
token: ${{ secrets.PUSHER_CI_GITHUB_PRIVATE_TOKEN }}
24+
path: .github/actions
25+
- uses: ./.github/actions/prepare-version-bump
26+
id: bump
27+
with:
28+
current_version: ${{ steps.fetch_latest_release.outputs.tag_name }}
29+
- uses: actions/setup-node@v3
30+
run: |
31+
npm install -g podspec-bump
32+
podspec-bump -i ${{ steps.bump.outputs.new_version }} -w -p PusherSwift.podspec
33+
podspec-bump -i ${{ steps.bump.outputs.new_version }} -w -p PusherSwiftWithEncryption.podspec

PusherSwift.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'PusherSwift'
3-
s.version = '10.1.0'
3+
s.version = '1.0.3'
44
s.summary = 'A Pusher client library in Swift'
55
s.homepage = 'https://github.com/pusher/pusher-websocket-swift'
66
s.license = 'MIT'

0 commit comments

Comments
 (0)