2021-01-20 15:12:29 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: amd64
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: yarn
|
|
|
|
image: node:14-alpine
|
|
|
|
commands:
|
|
|
|
- yarn
|
|
|
|
|
|
|
|
- name: yarn lint
|
|
|
|
image: node:14-alpine
|
|
|
|
commands:
|
|
|
|
- yarn lint
|
|
|
|
|
2022-01-09 16:01:32 +00:00
|
|
|
# - name: npm
|
|
|
|
# image: plugins/npm
|
|
|
|
# settings:
|
|
|
|
# username:
|
|
|
|
# from_secret: npm_username
|
|
|
|
# password:
|
|
|
|
# from_secret: npm_password
|
|
|
|
# email: tyhou13@gmx.com
|
|
|
|
# registry: https://registry.npmjs.org/:_authToken=$NPM_TOKEN
|
|
|
|
# token:
|
|
|
|
# from_secret: npm_token
|
|
|
|
# environment:
|
|
|
|
# NPM_TOKEN:
|
|
|
|
# from_secret: npm_token
|
|
|
|
# when:
|
|
|
|
# ref:
|
|
|
|
# - refs/tags/*
|
|
|
|
- name: npm publish
|
|
|
|
image: 17-alpine
|
|
|
|
commands:
|
|
|
|
- npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
|
|
|
|
- npm publish
|
2022-01-09 15:50:09 +00:00
|
|
|
environment:
|
2022-01-09 15:57:29 +00:00
|
|
|
NPM_TOKEN:
|
|
|
|
from_secret: npm_token
|
2021-01-20 15:29:21 +00:00
|
|
|
|
2021-01-20 15:12:29 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: arm64
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: arm64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: yarn
|
|
|
|
image: node:14-alpine
|
|
|
|
commands:
|
|
|
|
- yarn
|
|
|
|
|
|
|
|
- name: yarn lint
|
|
|
|
image: node:14-alpine
|
|
|
|
commands:
|
|
|
|
- yarn lint
|