Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 9 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ jobs:
run: |
echo '${{ secrets.GPG_KEY_CONTENTS }}' | base64 -d > 'secring.gpg'

- name: Setup pnpm for semantic-release
uses: pnpm/action-setup@v4
with:
version: 10

- name: Semantic Release --dry-run
if: ${{ github.event.inputs.dryRun == 'true'}}
env:
Expand All @@ -55,14 +60,8 @@ jobs:
GIT_COMMITTER_NAME: amplitude-sdk-bot
GIT_COMMITTER_EMAIL: amplitude-sdk-bot@users.noreply.github.com
run: |
npx \
-p lodash \
-p semantic-release@17 \
-p @semantic-release/changelog@5 \
-p @semantic-release/git@9 \
-p @google/semantic-release-replace-plugin@1.2.0 \
-p @semantic-release/exec@5 \
semantic-release --dry-run
pnpm install --frozen-lockfile
pnpm exec semantic-release --dry-run

- name: Semantic Release
if: ${{ github.event.inputs.dryRun == 'false'}}
Expand All @@ -78,11 +77,5 @@ jobs:
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SIGNING_SECRET_RING_FILE: ../../secring.gpg
run: |
npx \
-p lodash \
-p semantic-release@17 \
-p @semantic-release/changelog@5 \
-p @semantic-release/git@9 \
-p @google/semantic-release-replace-plugin@1.2.0 \
-p @semantic-release/exec@5 \
semantic-release
pnpm install --frozen-lockfile
pnpm exec semantic-release
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,5 @@ hs_err_pid*
settings.xml

.DS_Store

node_modules/
27 changes: 27 additions & 0 deletions package.json
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't believe we don't even have package.json

Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"private": true,
"version": "0.0.0",
"main": "release.config.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/amplitude/Amplitude-Swift.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/amplitude/Amplitude-Swift/issues"
},
"homepage": "https://github.com/amplitude/Amplitude-Swift#readme",
"devDependencies": {
"lodash": "4.17.21",
"semantic-release": "17.4.7",
"@semantic-release/changelog": "5.0.1",
"@semantic-release/git": "9.0.1",
"@google/semantic-release-replace-plugin": "1.2.0",
"@semantic-release/exec": "5.0.0"
},
"packageManager": "pnpm@10.20.0"
}
Loading
Loading