We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fca7b23 commit aedd793Copy full SHA for aedd793
.github/workflows/npm-publish-github-packages.yml
.github/workflows/npm-publish.yml
@@ -0,0 +1,34 @@
1
+name: Publish to npm
2
+
3
+on:
4
+ release:
5
+ types: [created]
6
+ push:
7
+ branches:
8
+ - main
9
+ workflow_dispatch:
10
11
+jobs:
12
+ build:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ - uses: actions/setup-node@v4
17
+ with:
18
+ node-version: 20
19
+ - run: npm ci
20
+ # - run: npm test # No tests specified yet
21
22
+ publish-npm:
23
+ needs: build
24
25
26
27
28
29
30
+ registry-url: https://registry.npmjs.org/
31
32
+ - run: npm publish
33
+ env:
34
+ NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
0 commit comments