Skip to content

Commit 12b09b2

Browse files
committed
add deploy.yml
1 parent 7729d18 commit 12b09b2

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Release to NPM
2+
on:
3+
workflow_dispatch:
4+
# No input required
5+
release:
6+
types: [published]
7+
8+
jobs:
9+
deploy_release:
10+
name: Publish npm package
11+
runs-on: [ubuntu-latest]
12+
permissions:
13+
contents: read
14+
id-token: write
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
submodules: true
20+
fetch-depth: 100
21+
- uses: actions/setup-node@v4
22+
with:
23+
node-version-file: '.nvmrc'
24+
registry-url: 'https://registry.npmjs.org'
25+
cache: npm
26+
- run: npm install -g npm@latest
27+
- run: npm ci
28+
- run: npm run build
29+
env:
30+
release: true
31+
- run: npm publish --provenance
32+

0 commit comments

Comments
 (0)