Skip to content

Commit

Permalink
Deploy to NPM
Browse files Browse the repository at this point in the history
  • Loading branch information
kruplm committed Apr 24, 2023
1 parent 69b9fd1 commit 574dc9c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/deploy-to-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish Package to npmjs

on:
release:
types: [published]
jobs:
build:
uses: ./.github/workflows/continuous-integration-prototypes.yml
deploy-npm:
name: Deploy packages to NPM
needs: build
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: [ '18.x' ]
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npx lerna run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 574dc9c

Please sign in to comment.