Skip to content

Commit b8898be

Browse files
committed
Updated packages.
1 parent 6ff5609 commit b8898be

File tree

10 files changed

+2330
-6612
lines changed

10 files changed

+2330
-6612
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Check out repository
14+
uses: actions/checkout@v4
15+
16+
- name: Install Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: 18
20+
registry-url: 'https://registry.npmjs.org'
21+
22+
- name: Update NPM to latest
23+
run: npm install npm@latest -g
24+
25+
- name: Print Node.js and NPM version
26+
run: |
27+
node -v
28+
npm -v
29+
30+
- name: Install dependencies
31+
run: npm ci
32+
33+
- name: Build package
34+
run: npm run build
35+
36+
- name: NPM whoami
37+
run: npm whoami
38+
env:
39+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
40+
41+
- name: Publish package
42+
run: npm publish --workspaces
43+
env:
44+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

.github/workflows/test.workflow.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
branches:
1010
- main
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
1216
jobs:
1317
tests:
1418
runs-on: ${{ matrix.os }}
@@ -17,13 +21,14 @@ jobs:
1721
strategy:
1822
matrix:
1923
os: [ubuntu-latest]
20-
node: [12.20.0, 14.13.1, 16.0.0]
24+
node: [18, 20]
2125

2226
steps:
2327
- name: Check out repository
24-
uses: actions/checkout@v3
28+
uses: actions/checkout@v4
2529

26-
- uses: actions/setup-node@v3
30+
- name: Install Node.js
31+
uses: actions/setup-node@v4
2732
with:
2833
node-version: ${{ matrix.node }}
2934

@@ -41,3 +46,5 @@ jobs:
4146
- name: Run tests
4247
timeout-minutes: 5
4348
run: npm test
49+
env:
50+
API_TOKEN_READONLY: ${{ secrets.API_TOKEN_READONLY }}

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,4 @@ node_modules/
44

55
dist/
66

7-
temp/
8-
97
.env

.npmignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
.github/
22

3+
coverage/
4+
35
src/
46

57
.eslintrc
@@ -8,3 +10,7 @@ src/
810
.prettierrc
911

1012
tsconfig.json
13+
14+
temp/
15+
16+
.env

.prettierrc

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
{
22
"arrowParens": "avoid",
33
"singleQuote": true,
4-
"tabWidth": 4,
5-
"trailingComma": "none",
6-
"overrides": [
7-
{
8-
"files": ["*.json", ".*rc", "*.md"],
9-
"options": {
10-
"tabWidth": 2
11-
}
12-
}
13-
]
4+
"tabWidth": 2,
5+
"trailingComma": "none"
146
}

0 commit comments

Comments
 (0)