Skip to content

Commit 467c80f

Browse files
committed
chore: setup environment
1 parent 3f45edb commit 467c80f

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,9 @@ permissions:
1515

1616
jobs:
1717
release:
18+
environment: release
1819
runs-on: ubuntu-latest
1920
steps:
20-
- name: Check authorization (must be in lwc-admin)
21-
uses: actions/github-script@v7
22-
with:
23-
github-token: ${{ secrets.ORG_READ_TOKEN }}
24-
script: |
25-
const org = context.repo.owner;
26-
const team_slug = 'lwc-admin';
27-
const username = context.actor;
28-
try {
29-
const res = await github.rest.teams.getMembershipForUserInOrg({ org, team_slug, username });
30-
if (res.data.state !== 'active') {
31-
core.setFailed(`User ${username} is not an active member of ${team_slug}`);
32-
}
33-
} catch {
34-
core.setFailed(`User ${username} is not a member of ${team_slug}`);
35-
}
36-
3721
- name: Checkout
3822
uses: actions/checkout@v4
3923
with:

0 commit comments

Comments
 (0)