Skip to content

Update package.json #12

Update package.json

Update package.json #12

Workflow file for this run

name: Build and Publish
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm install
- name: Build with TypeScript
run: npm run build
# - name: Run tests (if applicable)
# run: npm test
- name: Publish to npm
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: |
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}