Skip to content

0.3.5

0.3.5 #26

Workflow file for this run

name: 🎈 Publish
on:
push:
branches:
- main
pull_request: {}
permissions:
actions: write
contents: read
jobs:
deploy:
name: πŸš€ Publish
runs-on: ubuntu-latest
# only build/deploy main branch on pushes
if: ${{ (github.ref == 'refs/heads/main') &&
github.event_name == 'push' }}
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
- name: βŽ” Setup node
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- name: πŸš€ Deploy Production
if: ${{ github.ref == 'refs/heads/main' }}
run: yarn install && yarn tsup && npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_GITHUB_TOKEN }}