Skip to content

Commit fcfd3a3

Browse files
authored
Add release workflow, upgrade CI deps (#104)
1 parent d676314 commit fcfd3a3

4 files changed

Lines changed: 3706 additions & 6 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ jobs:
1313
node-version:
1414
- 22
1515
- 26 # Node.js 26 support Uint8Array.fromBase64()
16-
- '*'
16+
- latest
1717
steps:
18-
- uses: actions/checkout@v6
19-
- uses: actions/setup-node@v6
18+
- uses: actions/checkout@v7
19+
- uses: actions/setup-node@v7
2020
with:
2121
node-version: ${{ matrix.node-version }}
22-
- run: npm install
22+
- run: npm ci
2323
- run: npm test
2424
- uses: codecov/codecov-action@v5
2525
with:

‎.github/workflows/release.yml‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
8+
permissions:
9+
id-token: write # Required for NPM trusted publishing.
10+
contents: read
11+
12+
jobs:
13+
npm:
14+
name: Publish to npm
15+
runs-on: ubuntu-latest
16+
environment:
17+
name: release
18+
permissions:
19+
contents: read
20+
id-token: write
21+
steps:
22+
- uses: actions/checkout@v7
23+
- uses: actions/setup-node@v7
24+
with:
25+
node-version: latest
26+
- run: npm ci --ignore-scripts
27+
- run: npm test
28+
- run: npm stage publish # Runs prepublish script.

‎.gitignore‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
coverage
22
node_modules
33
npm-debug.log
4-
package-lock.json
54
dist/
6-
*.tsbuildinfo
5+
*.tsbuildinfo

0 commit comments

Comments
 (0)