Javascript-Library/.gitea/workflows/publish.yml
Liam dcf147167d
Some checks failed
Publish Package / build (push) Has been cancelled
update readme
2024-04-15 09:02:07 +01:00

30 lines
658 B
YAML

name: Publish Package
on:
push:
branches: [master]
paths-ignore:
- .gitignore
- README.md
- LICENSE
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 --no-git-checks
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}