Skip to content

0.1.49

0.1.49 #4

Workflow file for this run

name: Publish Package to npm
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20
- run: npm ci --legacy-peer-deps
- name: Run build
run: npm run build
- name: Check dist directory
run: ls dist/
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm ci --legacy-peer-deps
- name: Run build
run: npm run build
- name: Check dist directory
run: ls dist/
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}