Skip to content

Commit

Permalink
Merge pull request #57 from sasza2/feat/add-github-pipeline
Browse files Browse the repository at this point in the history
feat: add github pipeline
  • Loading branch information
sasza2 authored Nov 22, 2023
2 parents 82be4b1 + 07926b8 commit a4a3089
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Deployment production
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '21.2.0'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies and build
run: npm ci && npm run lint && npm run test
- name: Publish package
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
coverage/
dist/

# dependencies
/node_modules
Expand Down

0 comments on commit a4a3089

Please sign in to comment.