mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Make a master tag of the extensions API
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
6cee819c8b
commit
48e8a7e5a4
34
.github/workflows/publish-master-npm.yml
vendored
Normal file
34
.github/workflows/publish-master-npm.yml
vendored
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
name: Publish NPM Package `master`
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
jobs:
|
||||||
|
publish:
|
||||||
|
name: Publish NPM Package `master`
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
node-version: [12.x]
|
||||||
|
steps:
|
||||||
|
- name: Checkout Release
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Using Node.js ${{ matrix.node-version }}
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node-version }}
|
||||||
|
|
||||||
|
- name: Generate NPM package
|
||||||
|
run: |
|
||||||
|
make build-npm
|
||||||
|
|
||||||
|
- name: publish new release
|
||||||
|
if: contains(github.ref, 'refs/tags/v')
|
||||||
|
run: |
|
||||||
|
make publish-npm
|
||||||
|
env:
|
||||||
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
NPM_RELEASE_TAG: master
|
||||||
@ -1,11 +1,11 @@
|
|||||||
name: Publish NPM
|
name: Publish NPM Package Release
|
||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
types:
|
types:
|
||||||
- published
|
- published
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
name: Publish NPM
|
name: Publish NPM Package Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
2
Makefile
2
Makefile
@ -110,7 +110,7 @@ build-extension-types: node_modules src/extensions/npm/extensions/dist
|
|||||||
.PHONY: publish-npm
|
.PHONY: publish-npm
|
||||||
publish-npm: node_modules build-npm
|
publish-npm: node_modules build-npm
|
||||||
./node_modules/.bin/npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
|
./node_modules/.bin/npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
|
||||||
cd src/extensions/npm/extensions && npm publish --access=public
|
cd src/extensions/npm/extensions && npm publish --access=public --tag=${NPM_RELEASE_TAG:-latest}
|
||||||
|
|
||||||
.PHONY: docs
|
.PHONY: docs
|
||||||
docs:
|
docs:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user