Skip to content

Commit

Permalink
Adding GitHub Action for publishing NPM packages
Browse files Browse the repository at this point in the history
  • Loading branch information
johnciprian committed Aug 1, 2022
1 parent f59bfca commit 7f3e8f7
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish Packages

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node.js 16
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
registry-url: https://registry.npmjs.org/

- name: Install dependencies
run: npm ci

- name: Publish Packages
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 comments on commit 7f3e8f7

Please sign in to comment.