Skip to content

Publish bcd-utils-api package to npm #4

Publish bcd-utils-api package to npm

Publish bcd-utils-api package to npm #4

name: Publish bcd-utils-api package to npm
on:
workflow_dispatch:
inputs:
notes:
description: "Notes"
required: false
default: ""
jobs:
publish-package-api:
name: Publish package
runs-on: ubuntu-latest
defaults:
run:
working-directory: api
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: "https://registry.npmjs.org/"
cache: npm
- run: npm ci
- run: npm update @mdn/browser-compat-data
- run: npm test
- run: npm run build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}