25 lines
576 B
YAML
25 lines
576 B
YAML
name: Publish Package
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "20.x"
|
|
registry-url: "https://registry.npmjs.org"
|
|
- uses: pnpm/action-setup@v3
|
|
name: Install pnpm
|
|
with:
|
|
version: 8
|
|
run_install: false
|
|
- run: pnpm install
|
|
- run: pnpm run build
|
|
- run: pnpm run test
|
|
- run: pnpm publish
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|