2021-01-20 15:12:29 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: amd64
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: yarn
|
2022-01-09 16:03:24 +00:00
|
|
|
image: node:17-alpine
|
2021-01-20 15:12:29 +00:00
|
|
|
commands:
|
|
|
|
- yarn
|
|
|
|
|
|
|
|
- name: yarn lint
|
2022-01-09 16:03:24 +00:00
|
|
|
image: node:17-alpine
|
2021-01-20 15:12:29 +00:00
|
|
|
commands:
|
|
|
|
- yarn lint
|
|
|
|
|
2022-01-09 16:47:09 +00:00
|
|
|
- name: npm publish
|
|
|
|
image: node:17-alpine
|
|
|
|
commands:
|
|
|
|
- echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" >> .npmrc
|
|
|
|
- echo "email = $NPM_EMAIL" >> ~/.npmrc
|
|
|
|
- npm publish
|
2022-01-09 15:50:09 +00:00
|
|
|
environment:
|
2022-01-09 16:47:09 +00:00
|
|
|
NPM_AUTH_TOKEN:
|
2022-01-09 15:57:29 +00:00
|
|
|
from_secret: npm_token
|
2022-01-09 16:47:09 +00:00
|
|
|
NPM_EMAIL: tyhou13@gmx.com
|
2022-01-09 16:46:00 +00:00
|
|
|
when:
|
|
|
|
ref:
|
|
|
|
- refs/tags/*
|