Skip to content

Commit ebcbd6a

Browse files
committed
chore: prep for release
1 parent c487f53 commit ebcbd6a

29 files changed

+3228
-2271
lines changed

.github/actions/setup/.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
>=22

.github/actions/setup/action.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Setup
2+
description: Setup Node.js and install dependencies
3+
4+
runs:
5+
using: composite
6+
steps:
7+
- name: Setup Node.js
8+
uses: actions/setup-node@v4
9+
with:
10+
node-version-file: .nvmrc
11+
cache: npm
12+
13+
- name: Install dependencies
14+
run: npm ci
15+
shell: bash

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
10+
jobs:
11+
lint:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
17+
- name: Setup
18+
uses: ./.github/actions/setup
19+
20+
- name: Lint
21+
run: npm run lint
22+
23+
- name: Typecheck and build
24+
run: npm run tsc

.github/workflows/codeql.yml

Lines changed: 0 additions & 93 deletions
This file was deleted.

.github/workflows/ff.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Fast-Forward PR
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
7+
jobs:
8+
fast_forward_job:
9+
name: Fast Forward
10+
if: github.event.issue.pull_request != '' && (contains(github.event.comment.body, '/yolo'))
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code into workspace directory
14+
uses: actions/checkout@v3
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Fast Forward PR
19+
id: ff-action
20+
uses: endre-spotlab/fast-forward-js-action@master
21+
with:
22+
GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}
23+
success_message: "Success! Fast forwarded ***target_base*** to ***source_head***! ```git checkout target_base && git merge source_head --ff-only``` "
24+
failure_message: "Failed! Cannot do fast forward!"
25+
production_branch: "main"

.github/workflows/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Release & Publish
2+
on: workflow_dispatch
3+
jobs:
4+
release:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Checkout source code
8+
uses: actions/checkout@v3
9+
with:
10+
fetch-depth: 0
11+
12+
- name: Setup
13+
uses: ./.github/actions/setup
14+
15+
- name: Set Git user
16+
run: |
17+
git config --global user.email "[email protected]"
18+
git config --global user.name "GitHub Release Workflow"
19+
20+
- name: Create NPM config
21+
run: |
22+
npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
23+
env:
24+
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
25+
26+
- name: Run release
27+
run: npm run release --ci
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}
30+
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

.release-it.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema": "https://unpkg.com/release-it/schema/release-it.json",
3+
"npm": {
4+
"access": "public"
5+
}
6+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)