Skip to content

Publish Package to npmjs #51

Publish Package to npmjs

Publish Package to npmjs #51

# 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
run: echo "VITE_SUPABASE_KEY=$SUPABASE_KEY" >> $GITHUB_ENV

Check failure on line 17 in .github/workflows/publish-to-npm-registry.yml

View workflow run for this annotation

GitHub Actions / Publish Package to npmjs

Invalid workflow file

The workflow is not valid. .github/workflows/publish-to-npm-registry.yml (Line: 17, Col: 9): 'run' is already defined
- 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