Skip to content

Commit a78dc43

Browse files
committed
feat: general updates and removed old gh-tools
1 parent 4a913c6 commit a78dc43

66 files changed

Lines changed: 4970 additions & 73320 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/main.yml

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

.github/workflows/publish.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Configure GitHub App Token
13+
uses: actions/create-github-app-token@v2
14+
id: app-token
15+
with:
16+
app-id: ${{ vars.BOT_APP_ID }}
17+
private-key: ${{ secrets.BOT_APP_PRIVATE_KEY }}
18+
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
with:
22+
ref: master
23+
fetch-depth: 0
24+
token: ${{ steps.app-token.outputs.token }}
25+
26+
- name: Configure Git User
27+
run: |
28+
git config --global user.name ${{ vars.BOT_APP_USERNAME }}[bot]
29+
git config --global user.email ${{ vars.BOT_APP_EMAIL }}
30+
31+
- name: Setup Node.js
32+
uses: actions/setup-node@v4
33+
with:
34+
node-version: 22
35+
registry-url: 'https://registry.npmjs.org'
36+
scope: '@yetanothercode'
37+
always-auth: true
38+
env:
39+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
40+
41+
- name: Authenticate on npmjs Registry
42+
run: |
43+
echo "registry=https://registry.npmjs.org/" >> .npmrc
44+
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
45+
npm whoami
46+
env:
47+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
48+
49+
- name: Install Packages
50+
run: yarn install
51+
52+
- name: Publish Packages
53+
run: NPM_TOKEN="${{ secrets.NPM_TOKEN }}" yarn lerna publish from-package --yes --no-push --no-git-tag-version --registry https://registry.npmjs.org
54+
env:
55+
GH_TOKEN: ${{ steps.app-token.outputs.token }}
56+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
57+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/tag.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Generate Tags
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
tag:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Configure GitHub App Token
13+
uses: actions/create-github-app-token@v2
14+
id: app-token
15+
with:
16+
app-id: ${{ vars.BOT_APP_ID }}
17+
private-key: ${{ secrets.BOT_APP_PRIVATE_KEY }}
18+
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
with:
22+
ref: master
23+
token: ${{ steps.app-token.outputs.token }}
24+
25+
- name: Configure Git User
26+
run: |
27+
git config --global user.name ${{ vars.BOT_APP_USERNAME }}[bot]
28+
git config --global user.email ${{ vars.BOT_APP_EMAIL }}
29+
30+
- name: Setup Node.js
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version: 22
34+
registry-url: 'https://registry.npmjs.org'
35+
scope: '@yetanothercode'
36+
always-auth: true
37+
env:
38+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
39+
40+
- name: Authenticate on npmjs Registry
41+
run: |
42+
echo "@yetanothercode:registry=https://registry.npmjs.org/" > .npmrc
43+
echo "registry=https://registry.npmjs.org/" >> .npmrc
44+
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
45+
npm whoami
46+
env:
47+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
48+
49+
50+
51+
- name: Install Packages
52+
run: yarn install
53+
54+
- name: Create tags
55+
run: yarn lerna version --yes
56+
env:
57+
GH_TOKEN: ${{ steps.app-token.outputs.token }}
58+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
59+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
.yarn
22
.pnp.*
3+
4+
/.nx/workspace-data

.prettierrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// @ts-check
22
module.exports = {
3-
...require('@cirocfc/yet-another-prettier-config'),
3+
...require('@yetanothercode/prettier-config'),
44
};

.vscode/pnpify/prettier/index.js

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

.vscode/pnpify/prettier/package.json

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

.vscode/settings.json

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

0 commit comments

Comments
 (0)