mirror of
https://github.com/lensapp/lens.git
synced 2024-11-10 10:36:25 +03:00
publish npm package via pipeline on release (#1158)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
7e3ebcf54d
commit
b765ee11bb
@ -149,6 +149,11 @@ jobs:
|
|||||||
condition: "and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))"
|
condition: "and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))"
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: $(GH_TOKEN)
|
GH_TOKEN: $(GH_TOKEN)
|
||||||
|
- script: make publish-npm
|
||||||
|
displayName: Publish npm package
|
||||||
|
condition: "and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))"
|
||||||
|
env:
|
||||||
|
NPM_TOKEN: $(NPM_TOKEN)
|
||||||
- bash: |
|
- bash: |
|
||||||
mkdir -p "$AZURE_CACHE_FOLDER"
|
mkdir -p "$AZURE_CACHE_FOLDER"
|
||||||
tar -czf "$AZURE_CACHE_FOLDER/yarn-cache.tar.gz" "$YARN_CACHE_FOLDER"
|
tar -czf "$AZURE_CACHE_FOLDER/yarn-cache.tar.gz" "$YARN_CACHE_FOLDER"
|
||||||
|
3
Makefile
3
Makefile
@ -59,10 +59,11 @@ build-extensions:
|
|||||||
$(foreach dir, $(wildcard $(EXTENSIONS_DIR)/*), $(MAKE) -C $(dir) build;)
|
$(foreach dir, $(wildcard $(EXTENSIONS_DIR)/*), $(MAKE) -C $(dir) build;)
|
||||||
|
|
||||||
build-npm:
|
build-npm:
|
||||||
|
yarn compile:extension-rollup
|
||||||
yarn npm:fix-package-version
|
yarn npm:fix-package-version
|
||||||
|
|
||||||
publish-npm: build-npm
|
publish-npm: build-npm
|
||||||
cd src/extensions/npm/extensions && npm publish
|
cd src/extensions/npm/extensions && npm publish --access=public
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
ifeq "$(DETECTED_OS)" "Windows"
|
ifeq "$(DETECTED_OS)" "Windows"
|
||||||
|
Loading…
Reference in New Issue
Block a user