Skip to content

Commit 24afcaf

Browse files
committed
chore: Added GitHub actions for CLA and publishing
1 parent e7c11e9 commit 24afcaf

File tree

3 files changed

+46
-0
lines changed

3 files changed

+46
-0
lines changed

.github/FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: tidev
2+
liberapay: tidev

.github/workflows/cla.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Check CLA
2+
on:
3+
- pull_request
4+
5+
jobs:
6+
check-cla:
7+
runs-on: ubuntu-latest
8+
name: Verify contributor
9+
10+
steps:
11+
- uses: tidev/tidev-cla-action@v1
12+
with:
13+
repo-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/publish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish
2+
on:
3+
release:
4+
types: [ created ]
5+
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
name: Publish
10+
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v3
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Setup node
18+
uses: actions/setup-node@v2
19+
with:
20+
node-version: '16'
21+
registry-url: 'https://registry.npmjs.org'
22+
23+
- name: Install dependencies
24+
run: npm ci
25+
if: steps.node-cache.outputs.cache-hit != 'true'
26+
27+
- name: Publish to npm
28+
env:
29+
GH_TOKEN: ${{ github.token }}
30+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
31+
run: npm publish

0 commit comments

Comments
 (0)