Skip to content

Merge pull request #311 from bigcommerce/STRF-12284-Add-dependabot #110

Merge pull request #311 from bigcommerce/STRF-12284-Add-dependabot

Merge pull request #311 from bigcommerce/STRF-12284-Add-dependabot #110

Workflow file for this run

name: Paper Handlebars Library
on:
push:
branches: [master, main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- uses: actions/setup-node@v3
with:
node-version: '18.x'
- run: npm i
- run: npm run build
- name: Check Git Commit name
run: git log -1 --pretty=format:"%s" | npx commitlint
# Setup .npmrc file to publish package to npm registry
- run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc
- name: Deploy to npm and git
run: npm config list && npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}