Skip to content

ci: allow to manually run release #4

ci: allow to manually run release

ci: allow to manually run release #4

Workflow file for this run

name: Publish Package to npmjs

Check failure on line 1 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yml

Invalid workflow file

`worklow_dispatch` is not a valid event name
permissions:
contents: read
on:
release:
types: [published]
worklow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
- name: Install pnpm
uses: pnpm/action-setup@v2.4.0
with:
version: 7.33.6
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4.0.1
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: pnpm test:only
- run: pnpm all-publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}