Skip to content

ops: potentially working gh actions publish to npm #1

ops: potentially working gh actions publish to npm

ops: potentially working gh actions publish to npm #1

Workflow file for this run

name: Publish Package to npmjs

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

View workflow run for this annotation

GitHub Actions / .github/workflows/npm-publish.yml

Invalid workflow file

`workflow-dispatch` is not a valid event name
on:
release:
types: [published]
workflow-dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
# copy/paste from test-core
- name: Cypress run
uses: cypress-io/github-action@v5
with:
working-directory: packages/core
component: true
install-command: npm install
- name: Publish @mvuijs/core
run: npm --workspace=packages/core publish --acess public --dry-run
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish @mvuijs/ui5
run: npm --workspace=packages/ui5 publish --access public --dry-run
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}