Skip to content

Commit

Permalink
Add workflow to publish NPM package
Browse files Browse the repository at this point in the history
  • Loading branch information
emersion committed Jun 24, 2024
1 parent 621bcb2 commit becd006
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ permissions:
jobs:
lint:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand Down Expand Up @@ -48,3 +49,21 @@ jobs:
with:
name: build
path: dist/netzgrafik-frontend/

publish:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: build
path: dist/netzgrafik-frontend/
- uses: actions/setup-node@v4
with:
registry-url: 'https://registry.npmjs.org'
- run: npm version --no-git-tag-version "0.0.0+$GITHUB_SHA"
- run: npm publish --provenance --access public --tag snapshot
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit becd006

Please sign in to comment.