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> * use the gitref as a prerelease header Signed-off-by: Sebastian Malton <sebastian@malton.name> * Reduce the number of releases Signed-off-by: Sebastian Malton <sebastian@malton.name> * Fix if Signed-off-by: Sebastian Malton <sebastian@malton.name>
39 lines
953 B
YAML
39 lines
953 B
YAML
name: Publish NPM Package `master`
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
types:
|
|
- closed
|
|
jobs:
|
|
publish:
|
|
name: Publish NPM Package `master`
|
|
runs-on: ubuntu-latest
|
|
if: |
|
|
${{ github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'area/extension') }}
|
|
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
|