Skip to content

chore(github-actions): add pipeline to deploy #1

chore(github-actions): add pipeline to deploy

chore(github-actions): add pipeline to deploy #1

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: escpos-buffer
on: push
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '16.x'
- run: yarn
- run: yarn lint
publish:
needs: lint
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '16.x'
- run: yarn
- run: yarn build
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}