Skip to content

Commit

Permalink
fix more bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
levibostian committed Nov 21, 2023
1 parent f43f9c8 commit 5edfcd5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
git config --global user.name "Example User"
- name: Run semantic-release in dry run
run: unset GITHUB_ACTIONS && npx semantic-release --dry-run --no-ci --branches ${REF_NAME} --plugins "semantic-release-cocoapods"
run: unset GITHUB_ACTIONS && npx semantic-release --dry-run --no-ci --branches "${REF_NAME},main" --plugins "semantic-release-cocoapods"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REF_NAME: ${{ github.ref_name }}
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ export async function verifyConditions(pluginConfig, context) {
pluginConfig.podLintArgs = defaultTo(pluginConfig.podLintArgs, '');
pluginConfig.podPushArgs = defaultTo(pluginConfig.podPushArgs, '');

const errors = verifyPluginConfig(pluginConfig);
const errors = []
errors.push(...await verifyPluginConfig(pluginConfig, context));

try {
// 1. Verify `pod` command exists
Expand All @@ -29,7 +30,7 @@ export async function verifyConditions(pluginConfig, context) {
// 4. Verify `pod lib lint` is successful
await verifyPodLint(pluginConfig, context);
} catch (error) {
errors.push(...error);
errors.push(error);
}

if (errors.length > 0) {
Expand Down

0 comments on commit 5edfcd5

Please sign in to comment.