publishing to NPM #37
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-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 |