Skip to content

Commit d67fa55

Browse files
chore(API-2027): migrate to npm and latest supported node (#19)
Co-authored-by: Christian Bundy <christianbundy@fraction.io>
1 parent 1a26f5f commit d67fa55

File tree

5 files changed

+26219
-15538
lines changed

5 files changed

+26219
-15538
lines changed

.github/workflows/cd.yml

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,40 +6,32 @@ on:
66
- main
77
- beta
88

9-
env:
10-
PNPM_CACHE_FOLDER: .pnpm-store
11-
129
jobs:
1310
build:
1411
name: CI
1512
runs-on: ubuntu-latest
1613
steps:
1714
- name: Checkout
18-
uses: actions/checkout@v1
15+
uses: actions/checkout@v3
1916
- name: Setup Node.js
20-
uses: actions/setup-node@v1
17+
uses: actions/setup-node@v3
2118
with:
22-
node-version: 14
19+
node-version: 16
2320

24-
# pnpm stuff
25-
- name: pnpm — install
26-
run: npm i pnpm@latest -g
27-
- name: pnpm - config
28-
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
29-
- name: pnpm - install
30-
run: pnpm install
21+
- name: NPM ci
22+
run: npm ci
3123

3224
# build
3325
- name: lint
34-
run: pnpm lint
26+
run: npm run lint
3527
- name: build
36-
run: pnpm build
28+
run: npm run build
3729
- name: test
38-
run: pnpm t
30+
run: npm test
3931

4032
# release
4133
- name: release
4234
env:
4335
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4436
NPM_TOKEN: ${{ secrets.TRUEWORK_TEAM_NPM_TOKEN }}
45-
run: pnpx semantic-release
37+
run: npx semantic-release

.github/workflows/ci.yml

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,40 +5,32 @@ on:
55
branches:
66
- "**"
77

8-
env:
9-
PNPM_CACHE_FOLDER: .pnpm-store
10-
118
jobs:
129
build:
1310
name: CI
1411
runs-on: ubuntu-latest
1512
steps:
1613
- name: Checkout
17-
uses: actions/checkout@v1
14+
uses: actions/checkout@v3
1815
- name: Setup Node.js
19-
uses: actions/setup-node@v1
16+
uses: actions/setup-node@v3
2017
with:
21-
node-version: 14
18+
node-version: 16
2219

23-
# pnpm stuff
24-
- name: pnpm — install
25-
run: npm i pnpm@latest -g
26-
- name: pnpm - config
27-
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
28-
- name: pnpm - install
29-
run: pnpm install
20+
- name: NPM ci
21+
run: npm ci
3022

3123
# build
3224
- name: lint
33-
run: pnpm lint
25+
run: npm run lint
3426
- name: build
35-
run: pnpm build
27+
run: npm run build
3628
- name: test
37-
run: pnpm t
29+
run: npm test
3830

3931
# release
4032
- name: release
4133
env:
4234
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4335
NPM_TOKEN: ${{ secrets.TRUEWORK_TEAM_NPM_TOKEN }}
44-
run: pnpx semantic-release -d
36+
run: npx semantic-release -d

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ dist
33
.rts2_cache_cjs/
44
.rts2_cache_es/
55
.rts2_cache_umd/
6+
node_modules
7+
.idea

0 commit comments

Comments
 (0)