Skip to content

Commit 3c26457

Browse files
authored
Rewrite: Trello CLI 1.0 (#196)
1 parent 29f7c07 commit 3c26457

Some content is hidden

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

104 files changed

+8885
-8972
lines changed

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@2.2.0/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "restricted",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.eslintrc

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

.github/dependabot.yml

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

.github/workflows/ci.yml

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

.github/workflows/release.yml

Lines changed: 47 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,52 @@
1-
name: NPM Publish
1+
name: Release
22

33
on:
4-
release:
5-
types: [published]
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
permissions: write-all
11+
612
jobs:
7-
build:
13+
release:
14+
name: Release
815
runs-on: ubuntu-latest
916
steps:
10-
- uses: actions/checkout@v2
11-
with:
12-
ref: ${{ github.event.release.target_commitish }}
13-
- name: Use Node.js 18
14-
uses: actions/setup-node@v1
15-
with:
16-
node-version: 18
17-
registry-url: https://registry.npmjs.org/
18-
- run: npm ci
19-
- run: git config --global user.name "Michael Heap"
20-
- run: git config --global user.email "m@michaelheap.com"
21-
- run: npm version ${{ github.event.release.tag_name }}
22-
- run: npm run build --if-present
23-
- run: npm test --if-present
24-
- run: npm publish
25-
env:
26-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
27-
- run: git push
28-
env:
29-
github-token: ${{ secrets.GITHUB_TOKEN }}
30-
- run: git tag -f ${{ github.event.release.tag_name }} ${{ github.event.release.target_commitish }}
31-
env:
32-
github-token: ${{ secrets.GITHUB_TOKEN }}
33-
- run: git push origin ${{ github.event.release.tag_name }} --force
34-
env:
35-
github-token: ${{ secrets.GITHUB_TOKEN }}
17+
- uses: actions/checkout@v4
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
- uses: pnpm/action-setup@v2
23+
with:
24+
version: 8
25+
run_install: false
26+
- name: Get pnpm store directory
27+
id: pnpm-cache
28+
shell: bash
29+
run: |
30+
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
31+
- uses: actions/cache@v3
32+
name: Setup pnpm cache
33+
with:
34+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
35+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
36+
restore-keys: |
37+
${{ runner.os }}-pnpm-store-
38+
- name: Install dependencies
39+
run: pnpm install
40+
- name: Build packages
41+
run: pnpm build
42+
- name: Run tests
43+
run: pnpm test
44+
45+
- name: Publish to npm
46+
id: changesets
47+
uses: changesets/action@v1
48+
with:
49+
publish: pnpm changeset publish
50+
env:
51+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/test.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- typescript-v2
7+
pull_request:
8+
types:
9+
- opened
10+
- synchronize
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
node-version: [18.x]
19+
20+
env:
21+
CI: true
22+
23+
steps:
24+
- uses: actions/checkout@v4
25+
- name: Use Node.js ${{ matrix.node-version }}
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: ${{ matrix.node-version }}
29+
- uses: pnpm/action-setup@v2
30+
with:
31+
version: 8
32+
run_install: false
33+
- name: Get pnpm store directory
34+
id: pnpm-cache
35+
shell: bash
36+
run: |
37+
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
38+
- uses: actions/cache@v3
39+
name: Setup pnpm cache
40+
with:
41+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
42+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
43+
restore-keys: |
44+
${{ runner.os }}-pnpm-store-
45+
- name: Install dependencies
46+
run: pnpm install
47+
- name: Build packages
48+
run: pnpm build
49+
- name: Run tests
50+
run: pnpm test

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
.DS_Store
12
node_modules
2-
config.json
3+
packages/**/dist
4+
packages/**/coverage

.npmignore

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

.vscode/settings.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"files.exclude": {
3+
"**/dist": true,
4+
"**/node_modules": true,
5+
"packages/**/jest.config.js": true,
6+
"packages/**/tsconfig.build.json": true,
7+
"packages/**/tsconfig.json": true
8+
}
9+
}

CONTRIBUTING.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
## Running Tests
2+
3+
From the root directory:
4+
5+
```bash
6+
pnpm build
7+
pnpm test
8+
```

0 commit comments

Comments
 (0)