Skip to content

Commit 3f45edb

Browse files
committed
chore: test validation
1 parent de4e600 commit 3f45edb

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

.github/workflows/release.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,22 @@ jobs:
1717
release:
1818
runs-on: ubuntu-latest
1919
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-
# }
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+
}
3636
3737
- name: Checkout
3838
uses: actions/checkout@v4
@@ -71,8 +71,8 @@ jobs:
7171
BRANCH="$GITHUB_REF_NAME"
7272
node ./scripts/release/version.js "$INPUT_VERSION"
7373
RESOLVED_VERSION=$(node -p "require('./package.json').version")
74-
git commit -am "chore: release $RESOLVED_VERSION"
75-
git push origin HEAD
74+
# git commit -am "chore: release $RESOLVED_VERSION"
75+
# git push origin HEAD
7676
7777
- name: Build
7878
run: yarn build

0 commit comments

Comments
 (0)