Skip to content
name: Node.js Package Test Publish
on:
push:
branches:
- "develop"
- "feature/*"
- "!main"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- run: pnpm install
- run: pnpm test
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
registry-url: https://registry.npmjs.org/
- run: pnpm install
- run: pnpm publish --no-git-checks --access=public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}