lemmy-js-client/.woodpecker.yml

34 lines
631 B
YAML
Raw Normal View History

variables:
- &install_pnpm "corepack enable pnpm"
steps:
install:
image: node:alpine
commands:
- *install_pnpm
- pnpm i
2024-03-27 14:12:49 +00:00
when:
- event: pull_request
lint:
image: node:alpine
commands:
- *install_pnpm
- pnpm lint
2024-03-27 14:12:49 +00:00
when:
- event: pull_request
npm_publish:
image: node:alpine
environment:
NPM_TOKEN:
from_secret: npm_token
commands:
- *install_pnpm
2024-03-27 14:38:53 +00:00
- pnpm i
- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
- echo "email = tyhou13@gmx.com" >> ~/.npmrc
- npm publish
when:
2024-03-27 14:12:49 +00:00
- event: tag