Javascript-Library/.gitea/workflows/publish.yml
Liam dd4a52b109
Some checks failed
Publish Package / build (push) Failing after 15s
workflow
2024-04-14 22:39:26 +01:00

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 }}