Skip to content

Commit 66b205f

Browse files
committed
fix(release): fixed nesting for the env definition
1 parent 4a52e91 commit 66b205f

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

src/semantic-release/ci-providers/github-workflows/lifter-test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ suite('github-workflows lifter for semantic-release', () => {
7676
owner: vcsOwner,
7777
repo: vcsName,
7878
ref: '${{ github.ref }}', // eslint-disable-line no-template-curly-in-string
79-
workflow_id: 'release.yml',
80-
env: {
81-
GITHUB_TOKEN: '${{ secrets.GH_PAT }}' // eslint-disable-line no-template-curly-in-string
82-
}
79+
workflow_id: 'release.yml'
80+
},
81+
env: {
82+
GITHUB_TOKEN: '${{ secrets.GH_PAT }}' // eslint-disable-line no-template-curly-in-string
8383
}
8484
}]
8585
}

src/semantic-release/ci-providers/github-workflows/lifter.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,12 @@ export default async function ({projectRoot, vcs: {name: vcsProjectName, owner:
2525
owner: vcsOwner,
2626
repo: vcsProjectName,
2727
ref: '${{ github.ref }}', // eslint-disable-line no-template-curly-in-string
28-
workflow_id: 'release.yml',
29-
env: {
30-
GITHUB_TOKEN: '${{ secrets.GH_PAT }}' // eslint-disable-line no-template-curly-in-string
31-
}
28+
workflow_id: 'release.yml'
29+
},
30+
env: {
31+
GITHUB_TOKEN: '${{ secrets.GH_PAT }}' // eslint-disable-line no-template-curly-in-string
3232
}
3333
}]
34-
3534
}
3635
};
3736

0 commit comments

Comments
 (0)