lemmy-js-client/.woodpecker.yml
2024-03-27 10:38:53 -04:00

31 lines
591 B
YAML

variables:
- &install_pnpm "corepack enable pnpm"
steps:
install:
image: node:alpine
commands:
- *install_pnpm
- pnpm i
when:
- event: pull_request
lint:
image: node:alpine
commands:
- *install_pnpm
- pnpm lint
when:
- event: pull_request
npm_publish:
image: node:alpine
commands:
- *install_pnpm
- pnpm i
- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
- echo "email = tyhou13@gmx.com" >> ~/.npmrc
- npm publish
secrets: [npm_token]
when:
- event: tag