Skip to content

Commit

Permalink
added automatic publication of npm package
Browse files Browse the repository at this point in the history
  • Loading branch information
baldarn committed Jan 4, 2023
1 parent 13e4059 commit 1947925
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release Package

on:
release:
types: [created]
push:
branches:
- main

jobs:
github-package-registry:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Publish package to npm package registry
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit 1947925

Please sign in to comment.