fix: update deploy #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |