Skip to content

Commit 2b39a7c

Browse files
authored
Merge pull request #48 from IntersectMBO/chore/set-up-automatic-deployment-to-npm
chore: add github workflow to publish package to npm
2 parents d1edf6f + b2a5023 commit 2b39a7c

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build and publish new version of @intersect.mbo/pdf-ui package
2+
run-name: Publish by @${{ github.actor }}
3+
4+
on:
5+
workflow_dispatch:
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
defaults:
11+
run:
12+
working-directory: pdf-ui
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: "20"
22+
registry-url: "https://registry.npmjs.org"
23+
scope: "@intersect.mbo"
24+
25+
- name: Install dependencies
26+
run: npm ci
27+
env:
28+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
29+
30+
- name: Publish to npm
31+
run: npm publish
32+
env:
33+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)