Skip to content

Merge pull request #103 from ButterCMS/update_cdn_link #6

Merge pull request #103 from ButterCMS/update_cdn_link

Merge pull request #103 from ButterCMS/update_cdn_link #6

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 }}