Skip to content

Publish Package to npmjs #49

Publish Package to npmjs

Publish Package to npmjs #49

# 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: '${{ env.SUPABASE_URL }}'

Check failure on line 11 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: 11, Col: 22): Unrecognized named-value: 'env'. Located at position 1 within expression: env.SUPABASE_URL .github/workflows/publish-to-npm-registry.yml (Line: 12, Col: 22): Unrecognized named-value: 'env'. Located at position 1 within expression: env.SUPABASE_KEY
VITE_SUPABASE_KEY: '${{ env.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