Skip to content

Commit becd006

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

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 19 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,21 @@ 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+
- uses: actions/checkout@v4
58+
- name: Download build artifacts
59+
uses: actions/download-artifact@v4
60+
with:
61+
name: build
62+
path: dist/netzgrafik-frontend/
63+
- uses: actions/setup-node@v4
64+
with:
65+
registry-url: 'https://registry.npmjs.org'
66+
- run: npm version --no-git-tag-version "0.0.0+$GITHUB_SHA"
67+
- run: npm publish --provenance --access public --tag snapshot
68+
env:
69+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)