Skip to content

Commit 6988039

Browse files
thebeambotdoomspork
authored andcommitted
chore(main): release 1.14.0 (#2)
0 parents  commit 6988039

37 files changed

+35457
-0
lines changed

.github/workflows/ci.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: CI
2+
3+
on:
4+
merge_group:
5+
pull_request:
6+
types:
7+
- opened
8+
- reopened
9+
- synchronize
10+
push:
11+
branches:
12+
- main
13+
workflow_dispatch:
14+
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: ${{ github.ref != 'main'}}
18+
19+
jobs:
20+
Build:
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
27+
- name: Setup Node
28+
uses: actions/setup-node@v3
29+
with:
30+
node-version: 20.7.0
31+
cache: npm
32+
33+
- id: cache
34+
name: Cache node_modules
35+
uses: actions/cache@v4
36+
with:
37+
path: node_modules
38+
key: ${{ runner.os }}-node-16-nodemodules-${{ hashFiles('package-lock.json') }}
39+
40+
- if: steps.cache.outputs.cache-hit != 'true'
41+
name: Install Dependencies
42+
run: npm ci
43+
44+
- name: Build
45+
run: npm run build
46+
47+
Test:
48+
runs-on: ubuntu-latest
49+
50+
steps:
51+
- name: Checkout
52+
uses: actions/checkout@v4
53+
54+
- name: Setup Node
55+
uses: actions/setup-node@v3
56+
with:
57+
node-version: 20.7.0
58+
cache: npm
59+
60+
- id: cache
61+
name: Cache node_modules
62+
uses: actions/cache@v4
63+
with:
64+
path: node_modules
65+
key: ${{ runner.os }}-node-16-nodemodules-${{ hashFiles('package-lock.json') }}
66+
67+
- if: steps.cache.outputs.cache-hit != 'true'
68+
name: Install Dependencies
69+
run: npm ci
70+
71+
- name: Test
72+
run: npm run test

.github/workflows/pr.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: PR
3+
4+
on:
5+
pull_request:
6+
types:
7+
- edited
8+
- opened
9+
- reopened
10+
- synchronize
11+
12+
jobs:
13+
title:
14+
name: Check Title
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Check
22+
uses: stordco/actions-pr-title@v1.0.0
23+
with:
24+
regex: '^(feat!|fix!|fix|feat|chore|(fix|feat|chore)\(\w.*\)):\s(\[\w{1,8}-\d{1,8}\]|.*).*'
25+
hint: |
26+
You can pass the following formats:
27+
28+
fix: [OR-123] some title of the PR
29+
fix(scope): [OR-123] some title of the PR
30+
feat: [OR-1234] some title of the PR
31+
chore: update some action

.github/workflows/release.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
---
2+
name: Release
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
please:
11+
name: Please
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- id: release
16+
name: Release
17+
uses: googleapis/release-please-action@v4
18+
with:
19+
release-type: node
20+
package-name: "@beam-community/actions-sync"
21+
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
22+
extra-files: README.md
23+
24+
- if: ${{ steps.release.outputs.release_created }}
25+
name: Checkout
26+
uses: actions/checkout@v6
27+
with:
28+
ref: ${{ steps.release.outputs.tag_name }}
29+
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
30+
persist-credentials: true
31+
32+
- if: ${{ steps.release.outputs.release_created }}
33+
name: Setup Node
34+
uses: actions/setup-node@v6
35+
with:
36+
node-version: 20
37+
cache: npm
38+
39+
- if: ${{ steps.release.outputs.release_created }}
40+
name: Install Dependencies
41+
run: npm ci
42+
43+
- if: ${{ steps.release.outputs.release_created }}
44+
name: Build
45+
run: npm run build
46+
47+
- if: ${{ steps.release.outputs.release_created }}
48+
name: Tag
49+
run: |
50+
git config user.name doomspork
51+
git config user.email iamdoomspork@gmail.com
52+
53+
git add -f dist
54+
git commit --amend --no-edit
55+
56+
git tag -d latest || true
57+
git tag -d v${{ steps.release.outputs.major }} || true
58+
git tag -d v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
59+
git push origin :latest || true
60+
git push origin :v${{ steps.release.outputs.major }} || true
61+
git push origin :v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
62+
63+
git tag -a latest -m "chore(main): release latest"
64+
git tag -a v${{ steps.release.outputs.major }} -m "chore(main): release ${{ steps.release.outputs.major }}"
65+
git tag -a v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} -m "chore(main): release v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}"
66+
git push origin latest
67+
git push origin v${{ steps.release.outputs.major }}
68+
git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist
2+
node_modules

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
CHANGELOG.md
2+
dist
3+
node_modules
4+
test/fixtures

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node 20.7.0

0 commit comments

Comments
 (0)