Skip to content

Commit dde4f3d

Browse files
committed
Add workflow to publish NPM package
1 parent 621bcb2 commit dde4f3d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ permissions:
1111
jobs:
1212
lint:
1313
runs-on: ubuntu-latest
14+
continue-on-error: true
1415
steps:
1516
- uses: actions/checkout@v4
1617
- uses: actions/setup-node@v4
@@ -48,3 +49,20 @@ jobs:
4849
with:
4950
name: build
5051
path: dist/netzgrafik-frontend/
52+
53+
publish:
54+
runs-on: ubuntu-latest
55+
needs: build
56+
steps:
57+
- name: Download build artifacts
58+
uses: actions/download-artifact@v4
59+
with:
60+
name: build
61+
path: .
62+
- uses: actions/setup-node@v4
63+
with:
64+
registry-url: 'https://registry.npmjs.org'
65+
- run: npm version --no-git-tag-version "0.0.0+$GITHUB_SHA"
66+
- run: npm publish --provenance --access public --tag snapshot
67+
env:
68+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)