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:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set env
run: |
echo "VITE_SUPABASE_URL=$SUPABASE_URL" >> $GITHUB_ENV
echo "VITE_SUPABASE_KEY=$SUPABASE_KEY" >> $GITHUB_ENV
- 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