Skip to content

fix: Updated main to only publish on push to main. #12

fix: Updated main to only publish on push to main.

fix: Updated main to only publish on push to main. #12

Workflow file for this run

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: Release
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
env:
SURGE_LOGIN: ${{ secrets.SURGE_LOGIN }}
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- name: Npm Install
run: npm install
- name: Build dist
run: npm run build
- name: Build CLI
run: npm run build:cli
- name: Release to NPM
env:
DEBUG: semantic-release:*
run: npx [email protected] --branches main
#