Skip to content

fix: update deploy

fix: update deploy #8

Workflow file for this run

name: Publish @d3-inc/marketplace-widget to npm
on:
push:
branches:
- main
workflow_dispatch: # allows manual triggering of the workflow
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '18.18.2'
registry-url: 'https://registry.npmjs.org/'
scope: '@d3-inc'
- name: Install dependencies
run: yarn install
- name: Build widget
run: yarn build:widget
- name: Publish widget to npm
run: yarn publish:widget
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}