Skip to content

Changed build command #2

Changed build command

Changed build command #2

Workflow file for this run

name: 'publish npm'
on: push
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
registry-url: https://registry.npmjs.org
- name: Install dependencies
run: npm install
- name: Build lib
run: npm run build
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: production-files
path: ./lib
- name: Publish package
run: npm publish --access public
working-directory: ./
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}