1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/.github/workflows/publish-master-npm.yml
Mario Sarcher c272ccb48a
Publish npm master remove type (#2974)
* Publish NPM package on push to master branch

Signed-off-by: Mario Sarcher <mario@sarcher.de>

* Remove type closed to run properly on master branch commits

Signed-off-by: Mario Sarcher <mario@sarcher.de>
2021-06-07 13:43:52 +02:00

36 lines
871 B
YAML

name: Publish NPM Package `master`
on:
push:
branches:
- master
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
run: |
make publish-npm
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_RELEASE_TAG: master