Skip to content

Commit

Permalink
Implemented workflow to publish package on npm registry
Browse files Browse the repository at this point in the history
  • Loading branch information
joerndyherrn committed Nov 28, 2023
1 parent 87e52ff commit 5fa1f4f
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: 🚚 Publish to npm

on:
push:
branches:
- master

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: πŸ“¦ Check out code
uses: actions/checkout@v2

- name: 🌐 Set up Node.js
uses: actions/setup-node@v1
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org/'

- name: πŸ“₯ Install dependencies
run: npm install

- name: πŸ—οΈ Build
run: npm run build

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

0 comments on commit 5fa1f4f

Please sign in to comment.