Skip to content

Commit a851373

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

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,19 @@ jobs:
4848
with:
4949
name: build
5050
path: dist/netzgrafik-frontend/
51+
52+
publish:
53+
runs-on: ubuntu-latest
54+
needs: build
55+
steps:
56+
- name: Download build artifacts
57+
uses: actions/download-artifact@v4
58+
with:
59+
name: build
60+
path: .
61+
- uses: actions/setup-node@v4
62+
with:
63+
registry-url: 'https://registry.npmjs.org'
64+
- run: npm publish --provenance --access public --tag "0.0.0+$GITHUB_SHA"
65+
env:
66+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)