Skip to content

Commit

Permalink
Merge pull request #257 from TobiTRy/240-automatic-cd-for-npm-package…
Browse files Browse the repository at this point in the history
…-deployment

240 automatic cd for npm package deployment
  • Loading branch information
TobiTRy authored Mar 15, 2024
2 parents 0a3eb17 + 90dd14e commit 17dea77
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/deployOnNPM.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish npm package

on:
push:
branches:
- develop

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '14'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: npm install

- name: Build (if required)
run: npm run build

- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit 17dea77

Please sign in to comment.