@meltwater/esi-include-webpack-plugin
Version:
Webpack plugin to inject esi includes OR the contents
44 lines (40 loc) • 991 B
YAML
kind: pipeline
name: default
# Here are a bunch of anchors for re-use in this pipeline (they exist only in the pipeline)
node_img:
image: node:14.17.1
browser_img:
image: meltwaterfoundation/drone-node:10-browser
push_main_only:
when:
event: [ push ]
branch: [ main ]
#end anchors
steps:
- name: install
<<:
commands:
- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN_RO" > .npmrc
- npm ci
environment:
NPM_TOKEN_RO:
from_secret: npm_token_ro
- name: test
<<:
commands:
- 'npm run test'
when:
event:
- push
- pull_request
- name: publish
<<:
<<:
commands:
- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN_PUBLISH" > .npmrc
- npx semantic-release
environment:
GH_TOKEN:
from_secret: gh_token
NPM_TOKEN_PUBLISH:
from_secret: npm_token_publish