Skip to content

Update build.yml

Update build.yml #6

Workflow file for this run

name: Build and publish to NPM
on:
push:
branch: main
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install development dependencies
run: npm install
- name: Build bundle
run: npm run build
- name: Build types
run: npm run types
- name: Publish to NPM
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH }}
run: npm publish --tag latest