Skip to content

Commit

Permalink
add github actions ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
nenadpnc committed Sep 28, 2022
1 parent 8f0c651 commit e39cbbe
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build-Publish

on:
release:
types: [published]

jobs:
test-and-lint:
runs-on: [ubuntu-latest]

steps:
- name: Checkout 🛎
uses: actions/checkout@v2

- name: Setup node env 🏗
uses: actions/setup-node@v1
with:
node-version: '16'
registry-url: https://registry.npmjs.org/

- name: Install dependencies 👨🏻‍💻
uses: bahmutov/npm-install@v1

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

0 comments on commit e39cbbe

Please sign in to comment.