Add woodpecker (#110)

* Adding woodpecker 1

* Adding woodpecker 2

* v0.17.2-rc.4
This commit is contained in:
Dessalines 2023-03-27 12:19:19 -04:00 committed by Dessalines
parent de4414b877
commit be449fe39e
3 changed files with 21 additions and 34 deletions

View file

@ -1,33 +0,0 @@
---
kind: pipeline
name: amd64
platform:
os: linux
arch: amd64
steps:
- name: yarn
image: node:17-alpine
commands:
- yarn
- name: yarn lint
image: node:17-alpine
commands:
- yarn lint
- name: npm publish
image: node:17-alpine
commands:
- echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" >> .npmrc
- echo "email = $NPM_EMAIL" >> ~/.npmrc
- npm publish
environment:
NPM_AUTH_TOKEN:
from_secret: npm_token
NPM_EMAIL: tyhou13@gmx.com
when:
ref:
- refs/tags/*

20
.woodpecker.yml Normal file
View file

@ -0,0 +1,20 @@
pipeline:
yarn:
image: node:17-alpine
commands:
- yarn
yarn_lint:
image: node:17-alpine
commands:
- yarn lint
npm_publish:
image: node:17-alpine
commands:
- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
- echo "email = tyhou13@gmx.com" >> ~/.npmrc
- npm publish
secrets: [npm_token]
when:
event: tag

View file

@ -1,6 +1,6 @@
{ {
"name": "lemmy-js-client", "name": "lemmy-js-client",
"version": "0.17.2-rc.3", "version": "0.17.2-rc.4",
"description": "A javascript / typescript client for Lemmy", "description": "A javascript / typescript client for Lemmy",
"repository": "https://github.com/LemmyNet/lemmy-js-client", "repository": "https://github.com/LemmyNet/lemmy-js-client",
"license": "AGPL-3.0", "license": "AGPL-3.0",