Skip to content
# https://github.com/marketplace/actions/npm-publish
name: Publish Package to npmjs
on:
release:
types: [created]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
VITE_SUPABASE_URL: ${{vars.SUPABASE_URL}}
VITE_SUPABASE_KEY: ${{vars.SUPABASE_KEY}}
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: npm install
- run: npm run types
- run: npm run build
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public