Skip to content

Commit 7f78302

Browse files
committed
ci: scope env to single tasks when releasing
1 parent cbae3de commit 7f78302

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/release.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ jobs:
1313
release:
1414
runs-on: ubuntu-latest
1515

16-
env:
17-
GH_TOKEN: ${{ secrets.GH_PAT }}
18-
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
19-
VSCE_PAT: ${{ secrets.AZUREDEVOPS_PAT }}
20-
2116
steps:
2217
- uses: actions/checkout@v3
2318
with:
@@ -36,6 +31,10 @@ jobs:
3631

3732
- name: 'Semantic Release'
3833
run: npx semantic-release
34+
env:
35+
GH_TOKEN: ${{ secrets.GH_PAT }}
36+
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
37+
VSCE_PAT: ${{ secrets.AZUREDEVOPS_PAT }}
3938

4039
synchronise:
4140
needs: release
@@ -53,3 +52,7 @@ jobs:
5352
git pull
5453
git merge main
5554
git push
55+
env:
56+
GH_TOKEN: ${{ secrets.GH_PAT }}
57+
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
58+
VSCE_PAT: ${{ secrets.AZUREDEVOPS_PAT }}

0 commit comments

Comments
 (0)