Skip to content

publishing to NPM

publishing to NPM #58

name: publish-to-packages
run-name: publishing to NPM
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
- run: yarn --version
- run: yarn config set npmScopes.sisense.npmRegistryServer https://registry.npmjs.org/
- run: yarn config set npmPublishRegistry https://registry.npmjs.org/
- run: yarn config set npmAuthToken "${{ secrets.NPM_TOKEN }}"
- run: yarn install --immutable
- run: yarn build:prod
- run: ls -lha
- run: yarn publish --access public