Skip to content

Commit 992b636

Browse files
committed
add CLA and prepublish script
1 parent db4e6d0 commit 992b636

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/workflows/cla.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: 'CLA Assistant'
2+
on:
3+
issue_comment:
4+
types: [created]
5+
pull_request_target:
6+
types: [opened, closed, synchronize]
7+
8+
# Permissions for the local repo
9+
permissions:
10+
actions: write
11+
contents: write
12+
pull-requests: write
13+
statuses: write
14+
15+
jobs:
16+
CLAAssistant:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: 'CLA Assistant'
20+
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
21+
uses: contributor-assistant/[email protected]
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
# The PAT used to write to the remote repo
25+
PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_PAT }}
26+
with:
27+
path-to-signatures: 'signatures/cla.json'
28+
path-to-document: 'https://github.com/QuantForgeOrg/cla-signatures/blob/main/CLA.md'
29+
branch: 'main' # Branch of the remote repo
30+
remote-organization-name: 'QuantForgeOrg'
31+
remote-repository-name: 'cla-signatures'
32+
# Allow bots to bypass the check
33+
allowlist: bot*,dependabot[bot],greenkeeper[bot]

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"build:prod:browser": "cross-env BUILD=prod FORMAT=browser rollup -c ./rollup.config.js",
4848
"build:prod:browser-es": "cross-env BUILD=prod FORMAT=browser-es rollup -c ./rollup.config.js",
4949
"build:prod:es": "cross-env BUILD=prod rollup -c ./rollup.config.js",
50+
"prepublishOnly": "npm run build:prod:all",
5051
"knip": "knip"
5152
},
5253
"author": "Alaa-eddine KADDOURI",

0 commit comments

Comments
 (0)