Skip to content

Commit 665dd51

Browse files
authored
chore: add publish env (#1420)
* chore: add publish env Signed-off-by: Todd Baert <[email protected]> * Update release.yml Signed-off-by: Todd Baert <[email protected]> * Update merge.yml Signed-off-by: Todd Baert <[email protected]> --------- Signed-off-by: Todd Baert <[email protected]>
1 parent a6389e8 commit 665dd51

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/merge.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@ name: on-merge
99

1010
on:
1111
push:
12-
branches: [ master, main ]
12+
branches:
13+
- main
1314

1415
permissions:
1516
contents: read
1617

1718
jobs:
1819
build:
20+
environment: publish
1921
runs-on: ubuntu-latest
2022

2123
steps:

.github/workflows/release.yml

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ permissions: # added using https://github.com/step-security/secure-workflows
1212

1313
jobs:
1414
release-please:
15+
environment: publish
1516
permissions:
1617
contents: write # for google-github-actions/release-please-action to create release commit
1718
pull-requests: write # for google-github-actions/release-please-action to create release PR

0 commit comments

Comments
 (0)