Skip to content

Stop sending requests to commercial/api/hb #41

Stop sending requests to commercial/api/hb

Stop sending requests to commercial/api/hb #41

Workflow file for this run

name: publish
on:
push:
branches:
- "main"
pull_request:
branches-ignore:
- "gh-pages"
workflow_dispatch:
permissions: write-all
jobs:
release:
name: Release
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Setup node
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
- name: Publish
run: |
npm config set access public
npm set "//registry.npmjs.org/:_authToken" ${{ secrets.NPM_TOKEN }}
npm publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}