Skip to content

Commit fdd3241

Browse files
committed
Release and publish workflow
1 parent ef65f03 commit fdd3241

File tree

3 files changed

+136
-112
lines changed

3 files changed

+136
-112
lines changed

.github/workflows/publish.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
npm-publish:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
id-token: write
13+
steps:
14+
- uses: actions/checkout@v4
15+
# Setup .npmrc file to publish to npm
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: 20.x
19+
registry-url: 'https://registry.npmjs.org'
20+
- run: npm ci
21+
- run: npm run dist
22+
- run: npm publish --provenance --access public
23+
env:
24+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package-lock.json

Lines changed: 106 additions & 106 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)