Skip to content

.github/workflows/npm_publish.yml #3

.github/workflows/npm_publish.yml

.github/workflows/npm_publish.yml #3

Workflow file for this run

name: npm_publish
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm init --scope=nosto -y
- run: npm install
- run: npm run build
- run: npm run test
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPMJS_TOKEN }}
access: "public"
dry-run: false
check-version: true