Skip to content

Merge pull request #102 from ButterCMS/release-please--branches--mast… #5

Merge pull request #102 from ButterCMS/release-please--branches--mast…

Merge pull request #102 from ButterCMS/release-please--branches--mast… #5

Workflow file for this run

name: Publish to npm
on:
push:
branches:
- master
jobs:
publish-npm:
if: contains(github.event.head_commit.message, 'chore(release)')
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Set up Node
uses: actions/[email protected]
with:
node-version: 18.17.1
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: npm install
- name: Run build script
run: npm run build
- name: Publish to npm
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}