Skip to content

Commit 94a1a0d

Browse files
committed
chore: upgrade deps and publish on npm with staging step
1 parent d7078ff commit 94a1a0d

9 files changed

Lines changed: 698 additions & 933 deletions

File tree

.github/workflows/checks.yaml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,27 @@ name: Checks
33
on:
44
push:
55
branches:
6-
- '**'
7-
paths-ignore:
8-
- 'README.md'
6+
- main
97
pull_request:
108
types: [opened, synchronize]
9+
paths-ignore:
10+
- "README.md"
1111

1212
jobs:
1313
checks:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v5
17+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
1818

1919
- name: Set up NodeJS
20-
uses: actions/setup-node@v5
21-
with:
22-
node-version-file: '.node-version'
20+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
2321

2422
- name: Install dependencies
2523
run: npm ci
2624

27-
- name: TSC compile
28-
run: npm run compile
25+
- name: Typecheck
26+
run: npm run typecheck
2927

3028
- name: Test
3129
run: npm run test

.github/workflows/release.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323

2424
steps:
2525
- name: Checkout repository
26-
uses: actions/checkout@v5
26+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
2727
with:
2828
fetch-depth: 0 # Required to get all existing tags
2929
fetch-tags: true
@@ -40,10 +40,13 @@ jobs:
4040
exit 0
4141
4242
- name: Setup NodeJS
43-
uses: actions/setup-node@v5
43+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
4444
with:
45-
node-version-file: '.node-version'
4645
registry-url: 'https://registry.npmjs.org'
46+
package-manager-cache: false
47+
48+
- name: Upgrade npm
49+
run: npm install -g npm@11.17.0
4750

4851
- name: Install dependencies
4952
run: npm ci
@@ -61,4 +64,4 @@ jobs:
6164
- name: Publish new version
6265
run: |
6366
git push --follow-tags
64-
npm publish
67+
npm stage publish

.node-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

.prettierignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ package-lock.json
44
.*ignore
55
__snapshots__
66
LICENSE
7-
.node-version

0 commit comments

Comments
 (0)