Skip to content

Commit 5c2dd31

Browse files
committed
ci: use semantic release
1 parent 705f5f2 commit 5c2dd31

File tree

4 files changed

+7252
-1072
lines changed

4 files changed

+7252
-1072
lines changed

.github/workflows/npm.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Publish @kitware/vtk-wasm to npmjs
2+
on:
3+
push:
4+
branches:
5+
- main
6+
permissions:
7+
contents: read
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write # to be able to publish a GitHub release
13+
issues: write # to be able to comment on released issues
14+
pull-requests: write # to be able to comment on released pull requests
15+
id-token: write # to enable use of OIDC for npm provenance
16+
steps:
17+
- uses: actions/checkout@v5
18+
with:
19+
fetch-depth: 0
20+
persist-credentials: false
21+
- uses: actions/setup-node@v4
22+
with:
23+
node-version: "24.x"
24+
registry-url: "https://registry.npmjs.org"
25+
- name: Install dependencies
26+
run: npm ci
27+
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
28+
run: npm audit signatures
29+
- name: Build library
30+
run: npm run build
31+
- name: Publish library
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
34+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
35+
run: |
36+
git config --global user.name "Github Actions"
37+
git config --global user.email "[email protected]"
38+
npm run semantic-release

.github/workflows/publish_js_lib.yml

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

0 commit comments

Comments
 (0)